Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.003/1.003, allocations: 173.3 MB / 201.1 MB, free: 8.949 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 268 MB, free: 6.266 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.013e-05/3.201e-05, allocations: 2.312 kB / 268 MB, free: 6.262 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006154/0.006186, allocations: 4.835 MB / 272.8 MB, free: 1.402 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003099/0.009286, allocations: 1.256 MB / 274.1 MB, free: 140 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000619/0.009905, allocations: 19.88 kB / 274.1 MB, free: 120 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003597/0.01026, allocations: 118.7 kB / 274.2 MB, free: 0 / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006967/0.01096, allocations: 277.4 kB / 274.5 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.01202, allocations: 315.4 kB / 274.8 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001509/0.01353, allocations: 1.134 MB / 275.9 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003913/0.01392, allocations: 182.9 kB / 276.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009443/0.01486, allocations: 0.6158 MB / 276.7 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004995/0.01536, allocations: 363 kB / 277.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001263/0.01549, allocations: 92 kB / 277.2 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002369/0.01573, allocations: 119.9 kB / 277.3 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000153/0.01588, allocations: 199.3 kB / 277.5 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003197/0.0162, allocations: 323.2 kB / 277.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007613/0.01696, allocations: 0.72 MB / 278.5 MB, free: 11.67 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.01696, allocations: 4 kB / 278.5 MB, free: 11.67 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.01697, allocations: 0 / 278.5 MB, free: 11.67 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.578e-05/0.01698, allocations: 4 kB / 278.5 MB, free: 11.66 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.001599/0.01858, allocations: 1.266 MB / 279.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.01862, allocations: 8.922 kB / 279.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.01881, allocations: 152.3 kB / 280 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007558/0.01956, allocations: 432.1 kB / 280.4 MB, free: 9.738 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.777e-05/0.0196, allocations: 45.69 kB / 280.4 MB, free: 9.691 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.433e-05/0.01968, allocations: 68.36 kB / 280.5 MB, free: 9.625 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000761/0.02045, allocations: 0.6055 MB / 281.1 MB, free: 8.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.492e-05/0.02047, allocations: 4.188 kB / 281.1 MB, free: 8.977 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.519e-05/0.02052, allocations: 24.38 kB / 281.1 MB, free: 8.953 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.689e-05/0.02053, allocations: 23.92 kB / 281.2 MB, free: 8.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005099/0.02104, allocations: 327.6 kB / 281.5 MB, free: 8.609 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002262/0.0233, allocations: 1.758 MB / 283.2 MB, free: 6.773 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005249/0.02383, allocations: 340.7 kB / 283.6 MB, free: 6.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001956/0.02402, allocations: 153.1 kB / 283.7 MB, free: 6.277 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.889e-05/0.02406, allocations: 8.5 kB / 283.7 MB, free: 6.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004042/0.02447, allocations: 432 kB / 284.1 MB, free: 5.785 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.774e-06/0.02447, allocations: 0 / 284.1 MB, free: 5.785 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1525/0.177, allocations: 9.793 MB / 293.9 MB, free: 29.11 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.081e-05/0.1771, allocations: 141.6 kB / 294.1 MB, free: 28.95 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005656/0.1776, allocations: 0.5355 MB / 294.6 MB, free: 28.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000157/0.1778, allocations: 46.72 kB / 294.7 MB, free: 28.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002092/0.178, allocations: 438.5 kB / 295.1 MB, free: 28.51 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002361/0.1782, allocations: 326.5 kB / 295.4 MB, free: 28.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002736/0.1785, allocations: 187.5 kB / 295.6 MB, free: 28.31 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1786, allocations: 0.5524 MB / 296.1 MB, free: 27.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005273/0.1792, allocations: 350.9 kB / 296.5 MB, free: 27.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005711/0.1797, allocations: 0.7371 MB / 297.2 MB, free: 27.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.1808, allocations: 0.9791 MB / 298.2 MB, free: 26.82 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.908e-06/0.1808, allocations: 5 kB / 298.2 MB, free: 26.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.008177/0.189, allocations: 3.515 MB / 301.7 MB, free: 26.4 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.341e-05/0.189, allocations: 70.52 kB / 301.8 MB, free: 26.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.189, allocations: 3.844 kB / 301.8 MB, free: 26.33 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01306/0.2021, allocations: 5.163 MB / 307 MB, free: 23.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003208/0.2024, allocations: 123.9 kB / 307.1 MB, free: 23.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002334/0.2048, allocations: 2.564 MB / 309.6 MB, free: 20.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007534/0.2055, allocations: 115.9 kB / 309.8 MB, free: 20.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.411e-05/0.2056, allocations: 47.97 kB / 309.8 MB, free: 20.26 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.0002881/0.2059, allocations: 222 kB / 310 MB, free: 20.04 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/0.206, allocations: 119.5 kB / 310.1 MB, free: 19.92 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007145/0.2132, allocations: 3.169 MB / 313.3 MB, free: 16.73 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.2132, allocations: 11.94 kB / 313.3 MB, free: 16.73 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.2132, allocations: 8 kB / 313.3 MB, free: 16.72 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.98e-05/0.2132, allocations: 3.984 kB / 313.3 MB, free: 16.71 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008578/0.2141, allocations: 0.6868 MB / 314 MB, free: 16.03 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.2141, allocations: 4 kB / 314 MB, free: 16.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001945/0.2143, allocations: 59.88 kB / 314.1 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01249/0.2268, allocations: 5.122 MB / 319.2 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001249/0.2269, allocations: 23.97 kB / 319.2 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002082/0.229, allocations: 2.584 MB / 321.8 MB, free: 8.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.229, allocations: 0 / 321.8 MB, free: 8.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007726/0.2367, allocations: 3.482 MB / 325.3 MB, free: 4.648 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001782/0.2369, allocations: 63.48 kB / 325.3 MB, free: 4.586 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001132/0.237, allocations: 23.98 kB / 325.4 MB, free: 4.562 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004783/0.2375, allocations: 107.9 kB / 325.5 MB, free: 4.457 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/0.2376, allocations: 96.75 kB / 325.6 MB, free: 4.363 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.116e-05/0.2377, allocations: 31.98 kB / 325.6 MB, free: 4.332 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001969/0.2379, allocations: 346.8 kB / 325.9 MB, free: 3.992 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2379, allocations: 0 / 325.9 MB, free: 3.992 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005792/0.2385, allocations: 260 kB / 326.2 MB, free: 3.738 MB / 266.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.0002204/0.2387, allocations: 123.3 kB / 326.3 MB, free: 3.613 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001914/0.2406, allocations: 1.237 MB / 327.6 MB, free: 2.336 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.2406, allocations: 1.375 kB / 327.6 MB, free: 2.336 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001095/0.2417, allocations: 0.6567 MB / 328.2 MB, free: 1.68 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000499/0.2422, allocations: 150.7 kB / 328.4 MB, free: 1.539 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.2443, allocations: 1.505 MB / 329.9 MB, free: 16 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001363/0.2444, allocations: 160 kB / 330 MB, free: 15.84 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001862/0.2446, allocations: 61.66 kB / 330.1 MB, free: 15.78 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.2447, allocations: 40.5 kB / 330.1 MB, free: 15.74 MB / 282.7 MB Notification: Performance of SimCode: time 2.555e-06/0.2447, allocations: 0 / 330.1 MB, free: 15.74 MB / 282.7 MB Notification: Performance of Templates: time 0.02334/0.2681, allocations: 19.98 MB / 350.1 MB, free: 11.96 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.593881275039166]