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.0009294/0.0009294, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.00104/0.00104, allocations: 167.6 kB / 24.82 MB, free: 9.262 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.9707/0.9707, allocations: 177.1 MB / 205.3 MB, free: 5.477 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 2.214e-06/2.214e-06, allocations: 0 / 273.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.924e-05/3.145e-05, allocations: 4.844 kB / 273.4 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006351/0.006382, allocations: 4.789 MB / 278.2 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003185/0.009567, allocations: 1.26 MB / 279.5 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005665/0.01013, allocations: 15.94 kB / 279.5 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003862/0.01052, allocations: 122.7 kB / 279.6 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005321/0.01105, allocations: 277.4 kB / 279.9 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008532/0.01191, allocations: 315.4 kB / 280.2 MB, free: 10.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00112/0.01303, allocations: 1.134 MB / 281.3 MB, free: 9.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002939/0.01332, allocations: 182.9 kB / 281.5 MB, free: 9.129 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006819/0.014, allocations: 0.6081 MB / 282.1 MB, free: 8.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004221/0.01442, allocations: 371 kB / 282.5 MB, free: 8.156 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001061/0.01453, allocations: 92 kB / 282.6 MB, free: 8.066 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001656/0.0147, allocations: 116 kB / 282.7 MB, free: 7.953 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.0148, allocations: 207.2 kB / 282.9 MB, free: 7.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002231/0.01503, allocations: 323.2 kB / 283.2 MB, free: 7.434 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007118/0.01574, allocations: 0.7124 MB / 283.9 MB, free: 6.719 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.01574, allocations: 0 / 283.9 MB, free: 6.719 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.01574, allocations: 0 / 283.9 MB, free: 6.719 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.422e-05/0.01576, allocations: 0 / 283.9 MB, free: 6.719 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.001651/0.01741, allocations: 1.297 MB / 285.2 MB, free: 5.367 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.01745, allocations: 8.031 kB / 285.2 MB, free: 5.359 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.01761, allocations: 148.3 kB / 285.3 MB, free: 5.215 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004997/0.01811, allocations: 428.2 kB / 285.8 MB, free: 4.766 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.977e-05/0.01815, allocations: 49.69 kB / 285.8 MB, free: 4.719 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.638e-05/0.01823, allocations: 68.33 kB / 285.9 MB, free: 4.652 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000616/0.01884, allocations: 0.5625 MB / 286.4 MB, free: 4.051 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.01886, allocations: 192 / 286.4 MB, free: 4.051 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.864e-05/0.0189, allocations: 24.38 kB / 286.5 MB, free: 4.027 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.762e-05/0.01891, allocations: 23.92 kB / 286.5 MB, free: 4.004 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003395/0.01925, allocations: 258.2 kB / 286.7 MB, free: 3.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002124/0.02138, allocations: 1.785 MB / 288.5 MB, free: 1.891 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003682/0.02175, allocations: 296.1 kB / 288.8 MB, free: 1.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.02189, allocations: 133.8 kB / 288.9 MB, free: 1.457 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.826e-05/0.02192, allocations: 12.48 kB / 289 MB, free: 1.445 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003629/0.02229, allocations: 423.8 kB / 289.4 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 3.827e-06/0.02229, allocations: 4 kB / 289.4 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1444/0.1667, allocations: 9.429 MB / 298.8 MB, free: 25.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.474e-05/0.1667, allocations: 150.7 kB / 299 MB, free: 25.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004581/0.1672, allocations: 0.5294 MB / 299.5 MB, free: 25.04 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.1673, allocations: 45.14 kB / 299.5 MB, free: 25.01 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002018/0.1675, allocations: 449.1 kB / 300 MB, free: 24.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002074/0.1677, allocations: 331 kB / 300.3 MB, free: 24.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003007/0.168, allocations: 187.1 kB / 300.5 MB, free: 24.43 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1681, allocations: 0.5647 MB / 301 MB, free: 23.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004019/0.1685, allocations: 285.1 kB / 301.3 MB, free: 23.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008412/0.1694, allocations: 0.6702 MB / 302 MB, free: 23.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008267/0.1702, allocations: 0.864 MB / 302.8 MB, free: 22.79 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.1702, allocations: 0 / 302.8 MB, free: 22.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0102/0.1804, allocations: 3.366 MB / 306.2 MB, free: 20.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.78e-05/0.1805, allocations: 74.95 kB / 306.3 MB, free: 20.06 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/0.1805, allocations: 4 kB / 306.3 MB, free: 20.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0194/0.1999, allocations: 5.137 MB / 311.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004534/0.2004, allocations: 119.8 kB / 311.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002172/0.2025, allocations: 2.488 MB / 314 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007121/0.2033, allocations: 123.9 kB / 314.2 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.713e-05/0.2033, allocations: 39.97 kB / 314.2 MB, free: 12.18 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002488/0.2036, allocations: 216.4 kB / 314.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.2037, allocations: 115.4 kB / 314.5 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0066/0.2103, allocations: 3.033 MB / 317.5 MB, free: 8.801 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.2103, allocations: 8 kB / 317.6 MB, free: 8.793 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.2103, allocations: 4.859 kB / 317.6 MB, free: 8.789 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.2103, allocations: 3.984 kB / 317.6 MB, free: 8.785 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006407/0.211, allocations: 0.6054 MB / 318.2 MB, free: 8.227 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.211, allocations: 0 / 318.2 MB, free: 8.227 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.2111, allocations: 59.95 kB / 318.2 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01221/0.2233, allocations: 5.085 MB / 323.3 MB, free: 3.086 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/0.2235, allocations: 30.59 kB / 323.3 MB, free: 3.059 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001744/0.2252, allocations: 2.488 MB / 325.8 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.2252, allocations: 0 / 325.8 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007444/0.2326, allocations: 3.268 MB / 329.1 MB, free: 13.26 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001706/0.2328, allocations: 67.48 kB / 329.2 MB, free: 13.2 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.495e-05/0.2329, allocations: 23.98 kB / 329.2 MB, free: 13.17 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004797/0.2334, allocations: 106.7 kB / 329.3 MB, free: 13.07 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/0.2336, allocations: 96.86 kB / 329.4 MB, free: 12.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.907e-05/0.2336, allocations: 23.97 kB / 329.4 MB, free: 12.95 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002216/0.2338, allocations: 326.8 kB / 329.7 MB, free: 12.66 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2338, allocations: 0 / 329.7 MB, free: 12.66 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005613/0.2344, allocations: 259.9 kB / 330 MB, free: 12.4 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): 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.0002255/0.2346, allocations: 131.1 kB / 330.1 MB, free: 12.27 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001635/0.2363, allocations: 1.115 MB / 331.2 MB, free: 11.13 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.2363, allocations: 4 kB / 331.2 MB, free: 11.12 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.2373, allocations: 0.5912 MB / 331.8 MB, free: 10.55 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004475/0.2377, allocations: 156.2 kB / 332 MB, free: 10.41 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001963/0.2397, allocations: 1.459 MB / 333.4 MB, free: 8.934 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.284e-05/0.2398, allocations: 156 kB / 333.6 MB, free: 8.758 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001614/0.2399, allocations: 57 kB / 333.6 MB, free: 8.703 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002657/0.2402, allocations: 206.1 kB / 333.8 MB, free: 8.5 MB / 282.7 MB Notification: Performance of SimCode: time 7.42e-07/0.2402, allocations: 3.5 kB / 333.8 MB, free: 8.5 MB / 282.7 MB Notification: Performance of Templates: time 0.02982/0.27, allocations: 20.07 MB / 353.9 MB, free: 4.688 MB / 298.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.2950993948616087]