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.002761/0.002761, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.003168/0.003168, allocations: 165.3 kB / 24.28 MB, free: 156 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 1.586/1.586, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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.673e-06/1.673e-06, allocations: 0 / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.847e-05/3.015e-05, allocations: 2.312 kB / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.007106/0.007136, allocations: 4.818 MB / 277.2 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002757/0.009893, allocations: 1.26 MB / 278.4 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003855/0.01028, allocations: 23.88 kB / 278.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003451/0.01062, allocations: 118.8 kB / 278.6 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005922/0.01122, allocations: 277.4 kB / 278.8 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008527/0.01207, allocations: 315.3 kB / 279.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001521/0.01359, allocations: 1.126 MB / 280.3 MB, free: 9.852 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003614/0.01395, allocations: 179 kB / 280.4 MB, free: 9.664 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009144/0.01487, allocations: 0.6119 MB / 281 MB, free: 9.051 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005869/0.01545, allocations: 374.9 kB / 281.4 MB, free: 8.684 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001548/0.01561, allocations: 92 kB / 281.5 MB, free: 8.594 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002639/0.01587, allocations: 123.9 kB / 281.6 MB, free: 8.473 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000222/0.01609, allocations: 203.2 kB / 281.8 MB, free: 8.273 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004018/0.0165, allocations: 319.2 kB / 282.1 MB, free: 7.961 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001389/0.01788, allocations: 1.09 MB / 283.2 MB, free: 6.867 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.01789, allocations: 0 / 283.2 MB, free: 6.867 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.01789, allocations: 0 / 283.2 MB, free: 6.867 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.0179, allocations: 0 / 283.2 MB, free: 6.867 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.002814/0.02072, allocations: 1.336 MB / 284.6 MB, free: 5.477 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.02075, allocations: 8.031 kB / 284.6 MB, free: 5.469 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002783/0.02103, allocations: 144.3 kB / 284.7 MB, free: 5.328 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008082/0.02184, allocations: 444.2 kB / 285.1 MB, free: 4.863 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.528e-05/0.0219, allocations: 45.69 kB / 285.2 MB, free: 4.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000131/0.02203, allocations: 68.38 kB / 285.2 MB, free: 4.754 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.02346, allocations: 0.7337 MB / 286 MB, free: 3.984 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.542e-05/0.02348, allocations: 4.141 kB / 286 MB, free: 3.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.259e-05/0.02355, allocations: 24.38 kB / 286 MB, free: 3.957 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.016e-05/0.02357, allocations: 19.94 kB / 286 MB, free: 3.938 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.02509, allocations: 0.6181 MB / 286.6 MB, free: 3.316 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004359/0.02945, allocations: 2.008 MB / 288.7 MB, free: 1.234 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.03075, allocations: 0.5054 MB / 289.2 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006296/0.03138, allocations: 277.7 kB / 289.4 MB, free: 452 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.007e-05/0.03144, allocations: 16.44 kB / 289.4 MB, free: 436 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1143/0.1458, allocations: 0.5384 MB / 290 MB, free: 28.22 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 2.574e-06/0.1458, allocations: 0 / 290 MB, free: 28.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.05628/0.2021, allocations: 11.81 MB / 301.8 MB, free: 24.97 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.762e-05/0.2021, allocations: 149.5 kB / 301.9 MB, free: 24.79 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006065/0.2027, allocations: 0.6548 MB / 302.6 MB, free: 24.12 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001598/0.2029, allocations: 41.7 kB / 302.6 MB, free: 24.08 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002008/0.2031, allocations: 473.3 kB / 303.1 MB, free: 23.61 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002119/0.2033, allocations: 344.9 kB / 303.4 MB, free: 23.28 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003432/0.2037, allocations: 220.2 kB / 303.7 MB, free: 23.06 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.2038, allocations: 0.5938 MB / 304.2 MB, free: 22.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.2051, allocations: 0.6926 MB / 304.9 MB, free: 21.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001624/0.2068, allocations: 1.101 MB / 306 MB, free: 20.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002655/0.2094, allocations: 1.662 MB / 307.7 MB, free: 18.71 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.2094, allocations: 4 kB / 307.7 MB, free: 18.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01823/0.2276, allocations: 4.459 MB / 312.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.43e-05/0.2277, allocations: 63.39 kB / 312.2 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.2277, allocations: 12.12 kB / 312.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02987/0.2576, allocations: 5.617 MB / 317.9 MB, free: 8.488 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005305/0.2581, allocations: 115.9 kB / 318 MB, free: 8.375 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004788/0.2629, allocations: 3.461 MB / 321.4 MB, free: 4.852 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.2643, allocations: 115.9 kB / 321.5 MB, free: 4.738 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.865e-05/0.2644, allocations: 47.97 kB / 321.6 MB, free: 4.691 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.0003694/0.2647, allocations: 284.3 kB / 321.9 MB, free: 4.402 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/0.2649, allocations: 112.1 kB / 322 MB, free: 4.293 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01733/0.2822, allocations: 4.074 MB / 326.1 MB, free: 204 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.835e-05/0.2823, allocations: 12 kB / 326.1 MB, free: 192 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2823, allocations: 0 / 326.1 MB, free: 192 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.682e-05/0.2823, allocations: 7.969 kB / 326.1 MB, free: 184 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001543/0.2838, allocations: 0.8579 MB / 326.9 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/0.2838, allocations: 3.938 kB / 326.9 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003879/0.2842, allocations: 67.88 kB / 327 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03335/0.3176, allocations: 5.561 MB / 332.6 MB, free: 9.672 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002068/0.3178, allocations: 31.97 kB / 332.6 MB, free: 9.641 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006387/0.3242, allocations: 3.45 MB / 336 MB, free: 6.121 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/0.3242, allocations: 3.984 kB / 336 MB, free: 6.117 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02205/0.3462, allocations: 4.906 MB / 341 MB, free: 1.18 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000224/0.3464, allocations: 67.48 kB / 341 MB, free: 1.113 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001663/0.3466, allocations: 19.98 kB / 341 MB, free: 1.094 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.3477, allocations: 107.8 kB / 341.1 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002963/0.348, allocations: 112.8 kB / 341.3 MB, free: 0.875 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.3481, allocations: 32.84 kB / 341.3 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000541/0.3487, allocations: 422.8 kB / 341.7 MB, free: 440 kB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3487, allocations: 0 / 341.7 MB, free: 440 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008137/0.3495, allocations: 259.9 kB / 342 MB, free: 180 kB / 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.0002719/0.3498, allocations: 131.8 kB / 342.1 MB, free: 48 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.005706/0.3555, allocations: 1.927 MB / 344 MB, free: 14.08 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/0.3555, allocations: 0 / 344 MB, free: 14.08 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003329/0.3588, allocations: 0.9903 MB / 345 MB, free: 13.09 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000723/0.3595, allocations: 149.4 kB / 345.1 MB, free: 12.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003684/0.3632, allocations: 1.754 MB / 346.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/0.3636, allocations: 357.7 kB / 347.2 MB, free: 10.8 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002375/0.3638, allocations: 57 kB / 347.3 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001369/0.364, allocations: 44.44 kB / 347.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of SimCode: time 8.51e-07/0.364, allocations: 0 / 347.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of Templates: time 0.03379/0.3978, allocations: 19.1 MB / 366.4 MB, free: 7.773 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.735248869983479]