Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009429/0.0009429, allocations: 72.33 kB / 22.21 MB, free: 2.301 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009221/0.0009221, allocations: 161.8 kB / 25.61 MB, free: 8.91 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8845/0.8845, allocations: 177.2 MB / 206.1 MB, free: 4.508 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.052e-06/1.052e-06, allocations: 0 / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.142e-05/1.247e-05, allocations: 2.312 kB / 274.2 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.003798/0.00381, allocations: 4.792 MB / 279 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00189/0.0057, allocations: 1.252 MB / 280.3 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002714/0.005971, allocations: 15.94 kB / 280.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002282/0.0062, allocations: 126.7 kB / 280.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003544/0.006554, allocations: 277.4 kB / 280.7 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006089/0.007163, allocations: 315.3 kB / 281 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009632/0.008126, allocations: 1.134 MB / 282.1 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002819/0.008408, allocations: 190.9 kB / 282.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006268/0.009035, allocations: 0.6003 MB / 282.9 MB, free: 11.69 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004384/0.009473, allocations: 371 kB / 283.3 MB, free: 11.33 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001122/0.009585, allocations: 88 kB / 283.4 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001708/0.009756, allocations: 120 kB / 283.5 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.009892, allocations: 203.2 kB / 283.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002816/0.01017, allocations: 319.2 kB / 284 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006933/0.01087, allocations: 0.7202 MB / 284.7 MB, free: 9.891 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.863e-06/0.01087, allocations: 0 / 284.7 MB, free: 9.891 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.62e-07/0.01087, allocations: 0 / 284.7 MB, free: 9.891 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.01088, allocations: 0 / 284.7 MB, free: 9.891 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.001654/0.01253, allocations: 1.286 MB / 286 MB, free: 8.551 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.01256, allocations: 8.031 kB / 286 MB, free: 8.543 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001875/0.01275, allocations: 152.3 kB / 286.1 MB, free: 8.395 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004979/0.01325, allocations: 436.2 kB / 286.6 MB, free: 7.938 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.041e-05/0.01329, allocations: 45.69 kB / 286.6 MB, free: 7.895 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.039e-05/0.01338, allocations: 64.38 kB / 286.7 MB, free: 7.832 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007177/0.0141, allocations: 0.5625 MB / 287.2 MB, free: 7.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.01412, allocations: 192 / 287.2 MB, free: 7.23 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.211e-05/0.01417, allocations: 28.38 kB / 287.3 MB, free: 7.203 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/0.01419, allocations: 19.94 kB / 287.3 MB, free: 7.184 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004283/0.01462, allocations: 258.2 kB / 287.5 MB, free: 6.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002465/0.01708, allocations: 1.784 MB / 289.3 MB, free: 5.07 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004589/0.01754, allocations: 301.6 kB / 289.6 MB, free: 4.762 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001895/0.01773, allocations: 129.1 kB / 289.7 MB, free: 4.633 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/0.01777, allocations: 16.5 kB / 289.8 MB, free: 4.617 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003829/0.01815, allocations: 415.9 kB / 290.2 MB, free: 4.148 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 4.419e-06/0.01815, allocations: 0 / 290.2 MB, free: 4.148 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.03056/0.04871, allocations: 9.459 MB / 299.6 MB, free: 10.63 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.297e-05/0.04878, allocations: 141.5 kB / 299.8 MB, free: 10.46 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003909/0.04917, allocations: 0.5216 MB / 300.3 MB, free: 9.918 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.416e-05/0.04924, allocations: 45.64 kB / 300.3 MB, free: 9.867 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002409/0.04948, allocations: 455.3 kB / 300.8 MB, free: 9.414 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002261/0.04971, allocations: 333.1 kB / 301.1 MB, free: 9.086 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003092/0.05002, allocations: 188.2 kB / 301.3 MB, free: 8.895 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.0502, allocations: 0.5624 MB / 301.8 MB, free: 8.32 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004095/0.0506, allocations: 285.5 kB / 302.1 MB, free: 8.031 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005991/0.0512, allocations: 0.6684 MB / 302.8 MB, free: 7.207 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009912/0.0522, allocations: 0.8734 MB / 303.7 MB, free: 6.211 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.0522, allocations: 0 / 303.7 MB, free: 6.211 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01116/0.06336, allocations: 3.358 MB / 307 MB, free: 2.805 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.932e-05/0.06341, allocations: 71.39 kB / 307.1 MB, free: 2.723 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.06342, allocations: 4 kB / 307.1 MB, free: 2.719 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01879/0.08221, allocations: 5.156 MB / 312.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004072/0.08261, allocations: 123.8 kB / 312.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003547/0.08616, allocations: 2.578 MB / 315 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.08717, allocations: 119.9 kB / 315.1 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.08727, allocations: 39.97 kB / 315.1 MB, free: 10.62 MB / 298.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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0003176/0.08759, allocations: 220.4 kB / 315.3 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002275/0.08781, allocations: 115.4 kB / 315.4 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0123/0.1001, allocations: 3.025 MB / 318.5 MB, free: 7.238 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.1001, allocations: 12 kB / 318.5 MB, free: 7.227 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.1001, allocations: 0 / 318.5 MB, free: 7.227 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.1001, allocations: 11.97 kB / 318.5 MB, free: 7.215 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008975/0.101, allocations: 0.6019 MB / 319.1 MB, free: 6.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.101, allocations: 4 kB / 319.1 MB, free: 6.586 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002845/0.1013, allocations: 55.95 kB / 319.1 MB, free: 6.531 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02259/0.1239, allocations: 5.121 MB / 324.3 MB, free: 1.395 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001166/0.124, allocations: 31.91 kB / 324.3 MB, free: 1.363 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003203/0.1272, allocations: 2.498 MB / 326.8 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1272, allocations: 4 kB / 326.8 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007962/0.1352, allocations: 3.248 MB / 330 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.1353, allocations: 75.41 kB / 330.1 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.866e-05/0.1354, allocations: 20.03 kB / 330.1 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004876/0.1359, allocations: 107.9 kB / 330.2 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/0.136, allocations: 88.81 kB / 330.3 MB, free: 11.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.233e-05/0.1361, allocations: 27.98 kB / 330.4 MB, free: 11.2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001757/0.1363, allocations: 330.6 kB / 330.7 MB, free: 10.88 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1363, allocations: 0 / 330.7 MB, free: 10.88 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005268/0.1368, allocations: 260 kB / 330.9 MB, free: 10.62 MB / 314.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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000192/0.137, allocations: 127.2 kB / 331.1 MB, free: 10.49 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002147/0.1391, allocations: 1.202 MB / 332.3 MB, free: 9.242 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1391, allocations: 4.188 kB / 332.3 MB, free: 9.238 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.1402, allocations: 0.5869 MB / 332.9 MB, free: 8.652 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004131/0.1406, allocations: 154.2 kB / 333 MB, free: 8.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001798/0.1424, allocations: 1.457 MB / 334.5 MB, free: 7.008 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.932e-05/0.1425, allocations: 164 kB / 334.6 MB, free: 6.828 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.00014/0.1426, allocations: 58.22 kB / 334.7 MB, free: 6.77 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002805/0.1429, allocations: 202.1 kB / 334.9 MB, free: 6.57 MB / 314.7 MB Notification: Performance of SimCode: time 9.82e-07/0.1429, allocations: 0 / 334.9 MB, free: 6.57 MB / 314.7 MB Notification: Performance of Templates: time 0.02059/0.1635, allocations: 20.59 MB / 355.5 MB, free: 2.125 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.3776661911979318]