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.0009868/0.0009868, allocations: 80.92 kB / 21.5 MB, free: 2.992 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.0009847/0.0009847, allocations: 170.5 kB / 24.91 MB, free: 9.18 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.9096/0.9096, allocations: 177.1 MB / 205.3 MB, free: 5.457 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.533e-06/1.533e-06, allocations: 0 / 273.5 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.277e-05/2.431e-05, allocations: 2.312 kB / 273.5 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006014/0.006038, allocations: 4.781 MB / 278.3 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00355/0.009588, allocations: 1.314 MB / 279.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000395/0.009983, allocations: 15.94 kB / 279.6 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002999/0.01028, allocations: 126.7 kB / 279.7 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005913/0.01087, allocations: 273.4 kB / 280 MB, free: 10.71 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000766/0.01164, allocations: 319.4 kB / 280.3 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001141/0.01278, allocations: 1.134 MB / 281.4 MB, free: 9.258 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003195/0.0131, allocations: 196.9 kB / 281.6 MB, free: 9.047 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007422/0.01384, allocations: 0.6081 MB / 282.2 MB, free: 8.438 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005194/0.01436, allocations: 371 kB / 282.6 MB, free: 8.074 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001507/0.01451, allocations: 88 kB / 282.7 MB, free: 7.988 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001994/0.01471, allocations: 116 kB / 282.8 MB, free: 7.875 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001581/0.01487, allocations: 203.2 kB / 283 MB, free: 7.676 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003343/0.01521, allocations: 327.2 kB / 283.3 MB, free: 7.355 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008219/0.01603, allocations: 0.7201 MB / 284 MB, free: 6.633 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.01603, allocations: 0 / 284 MB, free: 6.633 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.01603, allocations: 0 / 284 MB, free: 6.633 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.562e-05/0.01605, allocations: 0 / 284 MB, free: 6.633 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.001656/0.0177, allocations: 1.161 MB / 285.2 MB, free: 5.426 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.01774, allocations: 8.031 kB / 285.2 MB, free: 5.418 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001788/0.01792, allocations: 112.8 kB / 285.3 MB, free: 5.309 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004795/0.0184, allocations: 341.5 kB / 285.6 MB, free: 4.945 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.098e-05/0.01844, allocations: 53.67 kB / 285.7 MB, free: 4.895 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.673e-05/0.01853, allocations: 68.38 kB / 285.7 MB, free: 4.828 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006643/0.0192, allocations: 0.5664 MB / 286.3 MB, free: 4.223 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.01921, allocations: 192 / 286.3 MB, free: 4.223 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.898e-05/0.01925, allocations: 32.36 kB / 286.3 MB, free: 4.191 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.01926, allocations: 23.88 kB / 286.4 MB, free: 4.168 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000393/0.01966, allocations: 222.2 kB / 286.6 MB, free: 3.953 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001716/0.02137, allocations: 1.457 MB / 288 MB, free: 2.438 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003091/0.02168, allocations: 264.4 kB / 288.3 MB, free: 2.168 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001196/0.0218, allocations: 115 kB / 288.4 MB, free: 2.055 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.132e-05/0.02183, allocations: 8.5 kB / 288.4 MB, free: 2.047 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000297/0.02213, allocations: 402.9 kB / 288.8 MB, free: 1.598 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.473e-06/0.02213, allocations: 0 / 288.8 MB, free: 1.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1423/0.1644, allocations: 10.67 MB / 299.5 MB, free: 24.8 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.162e-05/0.1645, allocations: 144.5 kB / 299.6 MB, free: 24.64 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.1647, allocations: 485.5 kB / 300.1 MB, free: 24.45 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.81e-05/0.1648, allocations: 47.42 kB / 300.1 MB, free: 24.41 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.522e-05/0.1649, allocations: 333.2 kB / 300.5 MB, free: 24.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/0.165, allocations: 329.1 kB / 300.8 MB, free: 24 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001856/0.1652, allocations: 182.5 kB / 301 MB, free: 23.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.889e-05/0.1652, allocations: 399.7 kB / 301.4 MB, free: 23.62 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002232/0.1655, allocations: 242.3 kB / 301.6 MB, free: 23.53 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002753/0.1657, allocations: 0.5477 MB / 302.1 MB, free: 23.1 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005192/0.1663, allocations: 0.7551 MB / 302.9 MB, free: 22.71 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.1663, allocations: 3.594 kB / 302.9 MB, free: 22.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.005927/0.1722, allocations: 3.091 MB / 306 MB, free: 20.1 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.229e-05/0.1722, allocations: 67.39 kB / 306.1 MB, free: 20.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.1722, allocations: 4.547 kB / 306.1 MB, free: 20.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0109/0.1831, allocations: 5.023 MB / 311.1 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002288/0.1834, allocations: 119.9 kB / 311.2 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0073/0.1907, allocations: 5.3 MB / 316.5 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005179/0.1912, allocations: 119.9 kB / 316.6 MB, free: 9.852 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.656e-05/0.1912, allocations: 39.97 kB / 316.7 MB, free: 9.812 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,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0001952/0.1914, allocations: 169.6 kB / 316.8 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.97e-05/0.1915, allocations: 87.86 kB / 316.9 MB, free: 9.551 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005813/0.1973, allocations: 2.817 MB / 319.7 MB, free: 6.734 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.1973, allocations: 12 kB / 319.7 MB, free: 6.723 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1973, allocations: 4 kB / 319.7 MB, free: 6.719 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.697e-06/0.1974, allocations: 10.72 kB / 319.8 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004561/0.1978, allocations: 0.5094 MB / 320.3 MB, free: 6.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.1978, allocations: 0 / 320.3 MB, free: 6.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001574/0.198, allocations: 74.59 kB / 320.3 MB, free: 6.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01103/0.209, allocations: 4.976 MB / 325.3 MB, free: 1.191 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.79e-05/0.209, allocations: 27.91 kB / 325.3 MB, free: 1.164 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008013/0.2171, allocations: 5.27 MB / 330.6 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2171, allocations: 0 / 330.6 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006497/0.2236, allocations: 3.01 MB / 333.6 MB, free: 8.852 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.694e-05/0.2236, allocations: 63.52 kB / 333.7 MB, free: 8.789 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.271e-05/0.2237, allocations: 24 kB / 333.7 MB, free: 8.766 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004157/0.2241, allocations: 118.8 kB / 333.8 MB, free: 8.652 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000192/0.2243, allocations: 112.7 kB / 333.9 MB, free: 8.543 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.953e-05/0.2244, allocations: 23.97 kB / 334 MB, free: 8.52 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001343/0.2245, allocations: 209.5 kB / 334.2 MB, free: 8.336 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2245, allocations: 0 / 334.2 MB, free: 8.336 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006966/0.2252, allocations: 356 kB / 334.5 MB, free: 7.988 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.0001664/0.2254, allocations: 121.7 kB / 334.6 MB, free: 7.871 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001562/0.2269, allocations: 1.296 MB / 335.9 MB, free: 6.535 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/0.2269, allocations: 9.375 kB / 335.9 MB, free: 6.527 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009959/0.2279, allocations: 0.8075 MB / 336.7 MB, free: 5.707 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003281/0.2282, allocations: 143.7 kB / 336.9 MB, free: 5.566 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00202/0.2303, allocations: 1.464 MB / 338.3 MB, free: 4.086 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001239/0.2304, allocations: 184.5 kB / 338.5 MB, free: 3.887 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001455/0.2305, allocations: 60.98 kB / 338.6 MB, free: 3.828 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002333/0.2308, allocations: 173.2 kB / 338.8 MB, free: 3.664 MB / 282.7 MB Notification: Performance of SimCode: time 6.21e-07/0.2308, allocations: 0 / 338.8 MB, free: 3.664 MB / 282.7 MB Notification: Performance of Templates: time 0.02761/0.2584, allocations: 29.76 MB / 368.5 MB, free: 6.133 MB / 314.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.313791904132813]