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.001349/0.001349, allocations: 87.58 kB / 21.19 MB, free: 3.383 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.001123/0.001123, allocations: 165 kB / 24.56 MB, free: 16 kB / 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.9418/0.9418, allocations: 177.1 MB / 205 MB, free: 5.605 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.022e-06/1.022e-06, allocations: 0 / 273 MB, free: 1.504 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.733e-05/1.835e-05, allocations: 2.312 kB / 273 MB, free: 1.5 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004247/0.004266, allocations: 4.857 MB / 277.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001817/0.006083, allocations: 1.268 MB / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002476/0.006331, allocations: 15.94 kB / 279.1 MB, free: 11.33 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000223/0.006554, allocations: 126.7 kB / 279.3 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000335/0.006889, allocations: 273.5 kB / 279.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005294/0.007418, allocations: 315.4 kB / 279.8 MB, free: 10.62 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007556/0.008174, allocations: 1.134 MB / 281 MB, free: 9.488 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002263/0.0084, allocations: 182.9 kB / 281.2 MB, free: 9.297 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005133/0.008913, allocations: 0.612 MB / 281.8 MB, free: 8.684 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003399/0.009253, allocations: 370.9 kB / 282.1 MB, free: 8.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.538e-05/0.009349, allocations: 92 kB / 282.2 MB, free: 8.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001509/0.009499, allocations: 116 kB / 282.3 MB, free: 8.117 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.009604, allocations: 203.2 kB / 282.5 MB, free: 7.918 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002091/0.009813, allocations: 323.2 kB / 282.8 MB, free: 7.602 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005437/0.01036, allocations: 0.7201 MB / 283.6 MB, free: 6.879 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.01036, allocations: 0 / 283.6 MB, free: 6.879 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.41e-07/0.01036, allocations: 0 / 283.6 MB, free: 6.879 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.01037, allocations: 0 / 283.6 MB, free: 6.879 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.00155/0.01192, allocations: 1.278 MB / 284.8 MB, free: 5.547 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.962e-05/0.01195, allocations: 12.03 kB / 284.9 MB, free: 5.535 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.0121, allocations: 148.3 kB / 285 MB, free: 5.391 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003972/0.0125, allocations: 436.2 kB / 285.4 MB, free: 4.934 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.753e-05/0.01252, allocations: 49.67 kB / 285.5 MB, free: 4.887 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.919e-05/0.01259, allocations: 68.33 kB / 285.5 MB, free: 4.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006539/0.01325, allocations: 0.6094 MB / 286.2 MB, free: 4.172 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.01326, allocations: 192 / 286.2 MB, free: 4.172 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.467e-05/0.0133, allocations: 28.38 kB / 286.2 MB, free: 4.145 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.01332, allocations: 19.94 kB / 286.2 MB, free: 4.125 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004572/0.01378, allocations: 331.5 kB / 286.5 MB, free: 3.801 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001957/0.01573, allocations: 1.75 MB / 288.3 MB, free: 1.977 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004608/0.01619, allocations: 333.6 kB / 288.6 MB, free: 1.637 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001974/0.01639, allocations: 157.7 kB / 288.8 MB, free: 1.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.46e-05/0.01643, allocations: 16.48 kB / 288.8 MB, free: 1.465 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003664/0.01679, allocations: 436 kB / 289.2 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.473e-06/0.01679, allocations: 0 / 289.2 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1308/0.1476, allocations: 9.775 MB / 299 MB, free: 24.99 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.1476, allocations: 145 kB / 299.1 MB, free: 24.83 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003542/0.148, allocations: 0.5353 MB / 299.6 MB, free: 24.56 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.59e-05/0.148, allocations: 48.73 kB / 299.7 MB, free: 24.53 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.1482, allocations: 441.7 kB / 300.1 MB, free: 24.24 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.1483, allocations: 324.8 kB / 300.4 MB, free: 24 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002255/0.1485, allocations: 190.4 kB / 300.6 MB, free: 23.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.217e-05/0.1486, allocations: 0.5544 MB / 301.2 MB, free: 23.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004271/0.149, allocations: 346.8 kB / 301.5 MB, free: 23.32 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004693/0.1495, allocations: 0.7349 MB / 302.3 MB, free: 22.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.1506, allocations: 0.9836 MB / 303.2 MB, free: 22.3 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.1506, allocations: 0.8125 kB / 303.2 MB, free: 22.3 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.007794/0.1584, allocations: 3.525 MB / 306.8 MB, free: 19.16 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.156e-05/0.1584, allocations: 63.41 kB / 306.8 MB, free: 19.08 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.1585, allocations: 4 kB / 306.8 MB, free: 19.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01271/0.1712, allocations: 5.166 MB / 312 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002775/0.1714, allocations: 123.7 kB / 312.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002059/0.1735, allocations: 2.568 MB / 314.7 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006787/0.1742, allocations: 123 kB / 314.8 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.889e-05/0.1742, allocations: 43.98 kB / 314.8 MB, free: 11 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.0002363/0.1745, allocations: 224.4 kB / 315.1 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.1746, allocations: 115.4 kB / 315.2 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00705/0.1817, allocations: 3.169 MB / 318.3 MB, free: 7.457 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.1817, allocations: 12 kB / 318.4 MB, free: 7.445 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1817, allocations: 4 kB / 318.4 MB, free: 7.441 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.1817, allocations: 3.984 kB / 318.4 MB, free: 7.438 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007118/0.1824, allocations: 0.6745 MB / 319 MB, free: 6.766 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.219e-06/0.1824, allocations: 0 / 319 MB, free: 6.766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001845/0.1826, allocations: 67.88 kB / 319.1 MB, free: 6.699 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01245/0.195, allocations: 5.112 MB / 324.2 MB, free: 1.574 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.361e-05/0.1951, allocations: 24.8 kB / 324.2 MB, free: 1.551 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002173/0.1973, allocations: 2.579 MB / 326.8 MB, free: 14.9 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1973, allocations: 0 / 326.8 MB, free: 14.9 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00821/0.2055, allocations: 3.478 MB / 330.3 MB, free: 11.39 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001695/0.2057, allocations: 71.47 kB / 330.4 MB, free: 11.32 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.2058, allocations: 22.38 kB / 330.4 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004936/0.2063, allocations: 115.9 kB / 330.5 MB, free: 11.18 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/0.2064, allocations: 88.81 kB / 330.6 MB, free: 11.1 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.231e-05/0.2065, allocations: 27.98 kB / 330.6 MB, free: 11.07 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002378/0.2067, allocations: 350.7 kB / 331 MB, free: 10.73 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2067, allocations: 0 / 331 MB, free: 10.73 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005651/0.2073, allocations: 271.6 kB / 331.2 MB, free: 10.46 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.0002169/0.2075, allocations: 119.5 kB / 331.3 MB, free: 10.34 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001921/0.2094, allocations: 1.237 MB / 332.6 MB, free: 9.07 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2094, allocations: 1.375 kB / 332.6 MB, free: 9.07 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.2106, allocations: 0.6596 MB / 333.2 MB, free: 8.414 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004363/0.211, allocations: 150.4 kB / 333.4 MB, free: 8.277 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002011/0.213, allocations: 1.506 MB / 334.9 MB, free: 6.75 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.747e-05/0.2131, allocations: 163.7 kB / 335.1 MB, free: 6.57 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001479/0.2132, allocations: 61.12 kB / 335.1 MB, free: 6.512 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.018e-05/0.2133, allocations: 36.5 kB / 335.2 MB, free: 6.477 MB / 282.7 MB Notification: Performance of SimCode: time 1.062e-06/0.2133, allocations: 4 kB / 335.2 MB, free: 6.473 MB / 282.7 MB Notification: Performance of Templates: time 0.02015/0.2335, allocations: 20.04 MB / 355.2 MB, free: 2.629 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.4289592131972313]