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.0009774/0.0009774, allocations: 72.08 kB / 21.69 MB, free: 2.852 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.001085/0.001085, allocations: 146 kB / 24.97 MB, free: 9.348 MB / 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 0.95/0.95, allocations: 173.4 MB / 201.5 MB, free: 9.348 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 2.044e-06/2.044e-06, allocations: 0 / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.549e-05/2.753e-05, allocations: 2.312 kB / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.01171/0.01173, allocations: 4.822 MB / 272.9 MB, free: 1.879 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004515/0.01625, allocations: 1.256 MB / 274.2 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004175/0.01667, allocations: 15.88 kB / 274.2 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002776/0.01694, allocations: 118.8 kB / 274.3 MB, free: 492 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004321/0.01738, allocations: 285.3 kB / 274.6 MB, free: 204 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006728/0.01805, allocations: 315.4 kB / 274.9 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009278/0.01898, allocations: 1.126 MB / 276 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002857/0.01926, allocations: 190.9 kB / 276.2 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007077/0.01997, allocations: 0.612 MB / 276.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004209/0.02039, allocations: 370.9 kB / 277.2 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.672e-05/0.02049, allocations: 88 kB / 277.3 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000155/0.02064, allocations: 116 kB / 277.4 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.02076, allocations: 207.2 kB / 277.6 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002423/0.021, allocations: 323.2 kB / 277.9 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000633/0.02164, allocations: 0.7201 MB / 278.6 MB, free: 12.14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.02164, allocations: 0 / 278.6 MB, free: 12.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.02164, allocations: 0 / 278.6 MB, free: 12.14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.02165, allocations: 0 / 278.6 MB, free: 12.14 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.001842/0.02349, allocations: 1.274 MB / 279.9 MB, free: 10.81 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.02353, allocations: 8.922 kB / 279.9 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001832/0.02372, allocations: 148.3 kB / 280 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004518/0.02417, allocations: 428.2 kB / 280.5 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.407e-05/0.0242, allocations: 49.69 kB / 280.5 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.596e-05/0.02428, allocations: 68.38 kB / 280.6 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006991/0.02498, allocations: 0.6094 MB / 281.2 MB, free: 9.449 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.02499, allocations: 192 / 281.2 MB, free: 9.449 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.345e-05/0.02504, allocations: 24.38 kB / 281.2 MB, free: 9.426 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.02505, allocations: 19.94 kB / 281.2 MB, free: 9.406 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005027/0.02556, allocations: 327.6 kB / 281.5 MB, free: 9.086 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002161/0.02772, allocations: 1.75 MB / 283.3 MB, free: 7.258 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004967/0.02821, allocations: 340.6 kB / 283.6 MB, free: 6.914 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002091/0.02842, allocations: 157 kB / 283.8 MB, free: 6.758 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.02845, allocations: 8.5 kB / 283.8 MB, free: 6.75 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003792/0.02883, allocations: 432 kB / 284.2 MB, free: 6.266 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.573e-06/0.02883, allocations: 0 / 284.2 MB, free: 6.266 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1425/0.1713, allocations: 9.79 MB / 294 MB, free: 25.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.241e-05/0.1714, allocations: 142.8 kB / 294.1 MB, free: 25.67 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005178/0.1719, allocations: 0.5341 MB / 294.7 MB, free: 25.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001176/0.172, allocations: 47.34 kB / 294.7 MB, free: 25.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002387/0.1722, allocations: 438.2 kB / 295.1 MB, free: 25.19 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002327/0.1725, allocations: 330 kB / 295.5 MB, free: 24.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002658/0.1727, allocations: 190.2 kB / 295.7 MB, free: 24.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.1728, allocations: 0.5543 MB / 296.2 MB, free: 24.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005754/0.1734, allocations: 353 kB / 296.6 MB, free: 24.39 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006703/0.1741, allocations: 0.732 MB / 297.3 MB, free: 23.88 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.1752, allocations: 0.976 MB / 298.3 MB, free: 23.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/0.1753, allocations: 1 kB / 298.3 MB, free: 23.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.009055/0.1843, allocations: 3.517 MB / 301.8 MB, free: 23.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.509e-05/0.1844, allocations: 68.06 kB / 301.8 MB, free: 23.08 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.1844, allocations: 6.469 kB / 301.9 MB, free: 23.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01398/0.1984, allocations: 5.167 MB / 307 MB, free: 21.31 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003187/0.1987, allocations: 119.2 kB / 307.1 MB, free: 21.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002254/0.2009, allocations: 2.567 MB / 309.7 MB, free: 18.65 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007713/0.2017, allocations: 111.9 kB / 309.8 MB, free: 18.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.536e-05/0.2018, allocations: 48.59 kB / 309.9 MB, free: 18.5 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.0002929/0.2021, allocations: 237.1 kB / 310.1 MB, free: 18.26 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001595/0.2022, allocations: 107.5 kB / 310.2 MB, free: 18.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007553/0.2098, allocations: 3.174 MB / 313.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.2098, allocations: 8 kB / 313.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2098, allocations: 0 / 313.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.2098, allocations: 7.969 kB / 313.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007212/0.2105, allocations: 0.6806 MB / 314.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.2105, allocations: 0 / 314.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001817/0.2107, allocations: 67.5 kB / 314.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01346/0.2242, allocations: 5.119 MB / 319.3 MB, free: 9.113 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001335/0.2243, allocations: 27.97 kB / 319.3 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002148/0.2264, allocations: 2.579 MB / 321.9 MB, free: 6.449 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2264, allocations: 8 kB / 321.9 MB, free: 6.441 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008245/0.2347, allocations: 3.474 MB / 325.3 MB, free: 2.961 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000257/0.2349, allocations: 68.36 kB / 325.4 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000132/0.2351, allocations: 19.98 kB / 325.4 MB, free: 2.875 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005182/0.2356, allocations: 103.9 kB / 325.5 MB, free: 2.773 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002098/0.2358, allocations: 96.75 kB / 325.6 MB, free: 2.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.667e-05/0.2359, allocations: 29.06 kB / 325.7 MB, free: 2.652 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002533/0.2361, allocations: 346.8 kB / 326 MB, free: 2.312 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2361, allocations: 4 kB / 326 MB, free: 2.309 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006472/0.2368, allocations: 271.2 kB / 326.3 MB, free: 2.047 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.0002284/0.237, allocations: 122.3 kB / 326.4 MB, free: 1.926 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001987/0.239, allocations: 1.244 MB / 327.6 MB, free: 0.668 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.239, allocations: 0 / 327.6 MB, free: 0.668 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001124/0.2401, allocations: 0.6498 MB / 328.3 MB, free: 20 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005384/0.2406, allocations: 146.7 kB / 328.4 MB, free: 15.88 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002342/0.243, allocations: 1.505 MB / 329.9 MB, free: 14.36 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.798e-05/0.2431, allocations: 160 kB / 330.1 MB, free: 14.18 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001798/0.2433, allocations: 57 kB / 330.1 MB, free: 14.13 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.219e-05/0.2434, allocations: 40.5 kB / 330.2 MB, free: 14.09 MB / 282.7 MB Notification: Performance of SimCode: time 1.783e-06/0.2434, allocations: 0 / 330.2 MB, free: 14.09 MB / 282.7 MB Notification: Performance of Templates: time 0.02308/0.2664, allocations: 19.04 MB / 349.2 MB, free: 11.27 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.706000583944842]