Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_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.0009811/0.0009811, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001165/0.001165, allocations: 162.8 kB / 25.61 MB, free: 8.902 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.9535/0.9535, allocations: 177.1 MB / 206.1 MB, free: 4.496 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.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 274.2 MB, free: 4.391 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.658e-05/1.779e-05, allocations: 2.312 kB / 274.2 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.003992/0.00401, allocations: 4.772 MB / 279 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001596/0.005606, allocations: 1.255 MB / 280.2 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000228/0.005834, allocations: 11.94 kB / 280.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003554/0.006189, allocations: 130.7 kB / 280.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003296/0.006519, allocations: 277.4 kB / 280.7 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00048/0.006999, allocations: 311.4 kB / 281 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007317/0.00773, allocations: 1.138 MB / 282.1 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000234/0.007964, allocations: 175 kB / 282.3 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004999/0.008464, allocations: 0.6159 MB / 282.9 MB, free: 11.69 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003427/0.008807, allocations: 367 kB / 283.2 MB, free: 11.33 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.859e-05/0.008896, allocations: 88 kB / 283.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001444/0.00904, allocations: 116 kB / 283.4 MB, free: 11.13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.009157, allocations: 211.2 kB / 283.6 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002105/0.009368, allocations: 319.2 kB / 284 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008024/0.01017, allocations: 0.724 MB / 284.7 MB, free: 9.887 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.01017, allocations: 0 / 284.7 MB, free: 9.887 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.01017, allocations: 0 / 284.7 MB, free: 9.887 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.01018, allocations: 0 / 284.7 MB, free: 9.887 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.002214/0.01239, allocations: 1.286 MB / 286 MB, free: 8.547 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.01243, allocations: 8.031 kB / 286 MB, free: 8.539 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002407/0.01267, allocations: 148.3 kB / 286.1 MB, free: 8.395 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006446/0.01332, allocations: 440.2 kB / 286.6 MB, free: 7.934 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.375e-05/0.01336, allocations: 49.62 kB / 286.6 MB, free: 7.887 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.01348, allocations: 68.38 kB / 286.7 MB, free: 7.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009033/0.01438, allocations: 0.5625 MB / 287.2 MB, free: 7.219 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.0144, allocations: 192 / 287.2 MB, free: 7.219 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.269e-05/0.01446, allocations: 24.38 kB / 287.3 MB, free: 7.195 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.01448, allocations: 19.94 kB / 287.3 MB, free: 7.176 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005423/0.01502, allocations: 262.2 kB / 287.5 MB, free: 6.918 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003078/0.0181, allocations: 1.788 MB / 289.3 MB, free: 5.055 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005377/0.01864, allocations: 297.6 kB / 289.6 MB, free: 4.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002218/0.01886, allocations: 129.1 kB / 289.7 MB, free: 4.621 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.049e-05/0.0189, allocations: 8.5 kB / 289.7 MB, free: 4.613 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004725/0.01937, allocations: 415.9 kB / 290.1 MB, free: 4.145 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 2.074e-06/0.01937, allocations: 0 / 290.1 MB, free: 4.145 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.02533/0.0447, allocations: 9.448 MB / 299.6 MB, free: 10.64 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.457e-05/0.04477, allocations: 141.5 kB / 299.7 MB, free: 10.46 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000403/0.04517, allocations: 0.5255 MB / 300.3 MB, free: 9.922 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.648e-05/0.04525, allocations: 45.7 kB / 300.3 MB, free: 9.871 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002468/0.04549, allocations: 451.3 kB / 300.7 MB, free: 9.422 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002299/0.04572, allocations: 329.1 kB / 301.1 MB, free: 9.098 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003191/0.04604, allocations: 192.1 kB / 301.3 MB, free: 8.902 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.04622, allocations: 0.5585 MB / 301.8 MB, free: 8.332 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000416/0.04663, allocations: 285.5 kB / 302.1 MB, free: 8.043 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006047/0.04724, allocations: 0.6722 MB / 302.8 MB, free: 7.215 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009935/0.04823, allocations: 0.8695 MB / 303.6 MB, free: 6.223 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.04824, allocations: 4 kB / 303.6 MB, free: 6.219 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01047/0.05871, allocations: 3.354 MB / 307 MB, free: 2.816 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.606e-05/0.05876, allocations: 63.41 kB / 307.1 MB, free: 2.742 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.05877, allocations: 4 kB / 307.1 MB, free: 2.738 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01813/0.0769, allocations: 5.137 MB / 312.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003428/0.07724, allocations: 123.8 kB / 312.3 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003276/0.08051, allocations: 2.488 MB / 314.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007838/0.0813, allocations: 119.9 kB / 314.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.885e-05/0.08139, allocations: 43.97 kB / 315 MB, free: 10.75 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.0002604/0.08165, allocations: 212.4 kB / 315.2 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002317/0.08188, allocations: 123.4 kB / 315.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009806/0.09168, allocations: 3.029 MB / 318.3 MB, free: 7.359 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.054e-05/0.0917, allocations: 8 kB / 318.3 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.0917, allocations: 0 / 318.3 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.09171, allocations: 3.984 kB / 318.3 MB, free: 7.348 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007414/0.09245, allocations: 0.6057 MB / 318.9 MB, free: 6.719 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.09245, allocations: 0 / 318.9 MB, free: 6.719 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002286/0.09268, allocations: 59.94 kB / 319 MB, free: 6.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01602/0.1087, allocations: 5.093 MB / 324.1 MB, free: 1.551 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.18e-05/0.1088, allocations: 27.92 kB / 324.1 MB, free: 1.523 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002052/0.1108, allocations: 2.494 MB / 326.6 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1108, allocations: 3.984 kB / 326.6 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007636/0.1185, allocations: 3.244 MB / 329.9 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.541e-05/0.1185, allocations: 67.47 kB / 329.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.1186, allocations: 20 kB / 329.9 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004831/0.1191, allocations: 111.9 kB / 330.1 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001434/0.1193, allocations: 92.75 kB / 330.1 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.014e-05/0.1193, allocations: 27.98 kB / 330.2 MB, free: 11.36 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001663/0.1195, allocations: 326.6 kB / 330.5 MB, free: 11.05 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1195, allocations: 4 kB / 330.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004961/0.12, allocations: 259.9 kB / 330.7 MB, free: 10.79 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.000179/0.1202, allocations: 131.2 kB / 330.9 MB, free: 10.65 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.1218, allocations: 1.119 MB / 332 MB, free: 9.488 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1218, allocations: 0 / 332 MB, free: 9.488 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.1229, allocations: 0.5837 MB / 332.6 MB, free: 8.906 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004569/0.1233, allocations: 158.2 kB / 332.7 MB, free: 8.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001861/0.1252, allocations: 1.464 MB / 334.2 MB, free: 7.25 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.248e-05/0.1253, allocations: 160 kB / 334.4 MB, free: 7.074 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001461/0.1254, allocations: 58.22 kB / 334.4 MB, free: 7.016 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002706/0.1257, allocations: 206.1 kB / 334.6 MB, free: 6.812 MB / 314.7 MB Notification: Performance of SimCode: time 6.91e-07/0.1257, allocations: 0 / 334.6 MB, free: 6.812 MB / 314.7 MB Notification: Performance of Templates: time 0.02327/0.149, allocations: 20.64 MB / 355.2 MB, free: 2.32 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_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.3470998499542475]