Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001044/0.001044, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001228/0.001228, allocations: 160.2 kB / 24.91 MB, free: 8.766 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9863/0.9863, allocations: 177 MB / 205.2 MB, free: 5.051 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 3.938 kB / 273.5 MB, free: 1 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.282e-05/2.435e-05, allocations: 2.312 kB / 273.5 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.004268/0.004292, allocations: 4.831 MB / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002173/0.006465, allocations: 1.318 MB / 279.6 MB, free: 10.81 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003416/0.006807, allocations: 15.94 kB / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002335/0.00704, allocations: 126.7 kB / 279.7 MB, free: 10.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003999/0.00744, allocations: 277.4 kB / 280 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005548/0.007995, allocations: 311.4 kB / 280.3 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008377/0.008833, allocations: 1.134 MB / 281.5 MB, free: 8.957 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002405/0.009073, allocations: 196.9 kB / 281.6 MB, free: 8.746 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005194/0.009593, allocations: 0.6158 MB / 282.3 MB, free: 8.129 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00034/0.009933, allocations: 367 kB / 282.6 MB, free: 7.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.934e-05/0.01002, allocations: 92 kB / 282.7 MB, free: 7.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001692/0.01019, allocations: 116 kB / 282.8 MB, free: 7.566 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.0103, allocations: 203.3 kB / 283 MB, free: 7.367 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002016/0.0105, allocations: 319.2 kB / 283.3 MB, free: 7.055 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00057/0.01107, allocations: 0.7201 MB / 284.1 MB, free: 6.332 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.01108, allocations: 0 / 284.1 MB, free: 6.332 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.01108, allocations: 4 kB / 284.1 MB, free: 6.328 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.01108, allocations: 0 / 284.1 MB, free: 6.328 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.001184/0.01227, allocations: 1.157 MB / 285.2 MB, free: 5.125 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.0123, allocations: 11.98 kB / 285.2 MB, free: 5.113 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.01242, allocations: 116.8 kB / 285.3 MB, free: 5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003654/0.01278, allocations: 345.4 kB / 285.7 MB, free: 4.637 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.162e-05/0.01282, allocations: 49.69 kB / 285.7 MB, free: 4.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.786e-05/0.01288, allocations: 68.36 kB / 285.8 MB, free: 4.523 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005101/0.01339, allocations: 0.5664 MB / 286.4 MB, free: 3.914 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.01341, allocations: 4.188 kB / 286.4 MB, free: 3.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.597e-05/0.01345, allocations: 32.36 kB / 286.4 MB, free: 3.879 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.01346, allocations: 27.86 kB / 286.4 MB, free: 3.852 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002823/0.01374, allocations: 214.3 kB / 286.6 MB, free: 3.645 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001685/0.01543, allocations: 1.453 MB / 288.1 MB, free: 2.133 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003302/0.01576, allocations: 260.4 kB / 288.3 MB, free: 1.867 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001224/0.01588, allocations: 122.2 kB / 288.5 MB, free: 1.746 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.475e-05/0.01591, allocations: 12.5 kB / 288.5 MB, free: 1.734 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003127/0.01623, allocations: 398.9 kB / 288.9 MB, free: 1.289 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.563e-06/0.01623, allocations: 0 / 288.9 MB, free: 1.289 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1356/0.1518, allocations: 10.7 MB / 299.6 MB, free: 24.64 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/0.1519, allocations: 145 kB / 299.7 MB, free: 24.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003197/0.1522, allocations: 484 kB / 300.2 MB, free: 24.29 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.075e-05/0.1523, allocations: 44.27 kB / 300.2 MB, free: 24.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.1524, allocations: 337.4 kB / 300.5 MB, free: 24.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000184/0.1526, allocations: 327.4 kB / 300.9 MB, free: 23.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002015/0.1528, allocations: 188.1 kB / 301 MB, free: 23.79 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.405e-05/0.1529, allocations: 389.7 kB / 301.4 MB, free: 23.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002605/0.1532, allocations: 241.3 kB / 301.7 MB, free: 23.37 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003297/0.1535, allocations: 0.55 MB / 302.2 MB, free: 22.94 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006097/0.1541, allocations: 0.7535 MB / 303 MB, free: 22.55 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.1541, allocations: 0 / 303 MB, free: 22.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.006534/0.1606, allocations: 3.104 MB / 306.1 MB, free: 19.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.536e-05/0.1607, allocations: 70.7 kB / 306.1 MB, free: 19.49 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.1607, allocations: 4 kB / 306.1 MB, free: 19.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01187/0.1726, allocations: 5.045 MB / 311.2 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.1729, allocations: 131.5 kB / 311.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008443/0.1813, allocations: 5.43 MB / 316.7 MB, free: 9.316 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007093/0.182, allocations: 123.9 kB / 316.9 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.409e-05/0.1821, allocations: 35.97 kB / 316.9 MB, free: 9.16 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 10 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,32,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002559/0.1823, allocations: 180.3 kB / 317.1 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/0.1825, allocations: 81.11 kB / 317.2 MB, free: 8.898 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006124/0.1886, allocations: 2.831 MB / 320 MB, free: 6.07 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.1886, allocations: 8 kB / 320 MB, free: 6.062 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.1886, allocations: 8 kB / 320 MB, free: 6.055 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.1886, allocations: 3.984 kB / 320 MB, free: 6.051 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006079/0.1892, allocations: 0.5199 MB / 320.5 MB, free: 5.559 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.1892, allocations: 0 / 320.5 MB, free: 5.559 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001923/0.1894, allocations: 63.88 kB / 320.6 MB, free: 5.496 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01158/0.201, allocations: 5.004 MB / 325.6 MB, free: 0.5 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.2011, allocations: 23.97 kB / 325.6 MB, free: 488 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008479/0.2096, allocations: 5.271 MB / 330.9 MB, free: 11.17 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.2096, allocations: 3.984 kB / 330.9 MB, free: 11.17 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007005/0.2166, allocations: 3.017 MB / 333.9 MB, free: 8.152 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.2167, allocations: 67.42 kB / 334 MB, free: 8.09 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.146e-05/0.2168, allocations: 22.55 kB / 334 MB, free: 8.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004499/0.2173, allocations: 115.9 kB / 334.1 MB, free: 7.957 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002525/0.2175, allocations: 108.8 kB / 334.2 MB, free: 7.852 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.732e-05/0.2176, allocations: 23.98 kB / 334.2 MB, free: 7.828 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001543/0.2177, allocations: 209.3 kB / 334.4 MB, free: 7.645 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2177, allocations: 4 kB / 334.5 MB, free: 7.641 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008147/0.2185, allocations: 359.9 kB / 334.8 MB, free: 7.289 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,32,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001854/0.2187, allocations: 108.3 kB / 334.9 MB, free: 7.176 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002037/0.2207, allocations: 1.381 MB / 336.3 MB, free: 5.762 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/0.2208, allocations: 8 kB / 336.3 MB, free: 5.754 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001129/0.2219, allocations: 0.8096 MB / 337.1 MB, free: 4.941 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004104/0.2223, allocations: 155.8 kB / 337.3 MB, free: 4.793 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002163/0.2245, allocations: 1.45 MB / 338.7 MB, free: 3.324 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000132/0.2246, allocations: 181.5 kB / 338.9 MB, free: 3.129 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001734/0.2248, allocations: 56.95 kB / 338.9 MB, free: 3.074 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000267/0.225, allocations: 177.2 kB / 339.1 MB, free: 2.906 MB / 282.7 MB Notification: Performance of SimCode: time 1.152e-06/0.225, allocations: 0 / 339.1 MB, free: 2.906 MB / 282.7 MB Notification: Performance of Templates: time 0.02988/0.2549, allocations: 29.81 MB / 368.9 MB, free: 5.352 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.510135038290173]