Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_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.0008694/0.0008694, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0008567/0.0008567, allocations: 165.4 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.9399/0.9399, allocations: 177.1 MB / 205 MB, free: 5.301 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.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 273 MB, free: 1.375 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.254e-05/1.369e-05, allocations: 5.828 kB / 273 MB, free: 1.371 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.004097/0.004111, allocations: 4.869 MB / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001956/0.006067, allocations: 1.268 MB / 279.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003081/0.006375, allocations: 15.94 kB / 279.2 MB, free: 11.19 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002661/0.006641, allocations: 126.7 kB / 279.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000393/0.007034, allocations: 277.4 kB / 279.6 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000596/0.00763, allocations: 323.3 kB / 279.9 MB, free: 10.47 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008347/0.008465, allocations: 1.126 MB / 281 MB, free: 9.344 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002874/0.008752, allocations: 186.9 kB / 281.2 MB, free: 9.148 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006027/0.009355, allocations: 0.6081 MB / 281.8 MB, free: 8.539 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005998/0.009954, allocations: 367 kB / 282.1 MB, free: 8.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.228e-05/0.01005, allocations: 92 kB / 282.2 MB, free: 8.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.0102, allocations: 112 kB / 282.3 MB, free: 7.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.01031, allocations: 207.2 kB / 282.5 MB, free: 7.777 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000218/0.01053, allocations: 323.2 kB / 282.9 MB, free: 7.461 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005993/0.01113, allocations: 0.7202 MB / 283.6 MB, free: 6.738 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.01113, allocations: 3.938 kB / 283.6 MB, free: 6.734 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.01113, allocations: 0 / 283.6 MB, free: 6.734 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.01114, allocations: 0 / 283.6 MB, free: 6.734 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.001401/0.01254, allocations: 1.274 MB / 284.9 MB, free: 5.406 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.01257, allocations: 12.03 kB / 284.9 MB, free: 5.395 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001711/0.01274, allocations: 148.3 kB / 285 MB, free: 5.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000427/0.01317, allocations: 428.2 kB / 285.4 MB, free: 4.801 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.033e-05/0.0132, allocations: 45.69 kB / 285.5 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.524e-05/0.01328, allocations: 76.27 kB / 285.6 MB, free: 4.684 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007011/0.01398, allocations: 0.6094 MB / 286.2 MB, free: 4.035 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.01399, allocations: 192 / 286.2 MB, free: 4.035 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.29e-05/0.01404, allocations: 28.38 kB / 286.2 MB, free: 4.008 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.569e-05/0.01405, allocations: 19.94 kB / 286.2 MB, free: 3.988 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004805/0.01453, allocations: 323.6 kB / 286.5 MB, free: 3.672 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002055/0.01659, allocations: 1.758 MB / 288.3 MB, free: 1.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004918/0.01708, allocations: 336.3 kB / 288.6 MB, free: 1.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001996/0.01728, allocations: 157.8 kB / 288.8 MB, free: 1.344 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.388e-05/0.01731, allocations: 12.5 kB / 288.8 MB, free: 1.332 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006063/0.01792, allocations: 439.9 kB / 289.2 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.543e-06/0.01792, allocations: 0 / 289.2 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1308/0.1487, allocations: 9.783 MB / 299 MB, free: 25.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.1488, allocations: 140.6 kB / 299.1 MB, free: 25.13 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000371/0.1491, allocations: 0.5373 MB / 299.7 MB, free: 24.86 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.739e-05/0.1492, allocations: 50.86 kB / 299.7 MB, free: 24.83 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.1494, allocations: 438.3 kB / 300.1 MB, free: 24.57 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000188/0.1495, allocations: 329 kB / 300.5 MB, free: 24.37 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002104/0.1498, allocations: 190.9 kB / 300.7 MB, free: 24.31 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.782e-05/0.1498, allocations: 0.5543 MB / 301.2 MB, free: 23.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004459/0.1503, allocations: 349.6 kB / 301.6 MB, free: 23.68 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000521/0.1508, allocations: 0.736 MB / 302.3 MB, free: 23.11 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008849/0.1517, allocations: 0.9788 MB / 303.3 MB, free: 22.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1517, allocations: 0 / 303.3 MB, free: 22.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.007519/0.1592, allocations: 3.534 MB / 306.8 MB, free: 19.1 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.247e-05/0.1593, allocations: 67.52 kB / 306.9 MB, free: 19.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.168e-06/0.1593, allocations: 8 kB / 306.9 MB, free: 19.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01232/0.1716, allocations: 5.187 MB / 312.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002397/0.1718, allocations: 123.8 kB / 312.2 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002247/0.1741, allocations: 2.65 MB / 314.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000638/0.1747, allocations: 119 kB / 314.9 MB, free: 10.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.473e-05/0.1748, allocations: 47.97 kB / 315 MB, free: 10.82 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.0002488/0.175, allocations: 231.1 kB / 315.2 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/0.1752, allocations: 111.5 kB / 315.3 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007805/0.183, allocations: 3.177 MB / 318.5 MB, free: 7.277 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.183, allocations: 12 kB / 318.5 MB, free: 7.266 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.183, allocations: 0 / 318.5 MB, free: 7.266 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.183, allocations: 3.984 kB / 318.5 MB, free: 7.262 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007417/0.1837, allocations: 0.6746 MB / 319.2 MB, free: 6.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.1837, allocations: 0 / 319.2 MB, free: 6.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002165/0.184, allocations: 71.81 kB / 319.3 MB, free: 6.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01674/0.2007, allocations: 5.139 MB / 324.4 MB, free: 1.371 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.443e-05/0.2008, allocations: 28.84 kB / 324.4 MB, free: 1.344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002644/0.2034, allocations: 2.583 MB / 327 MB, free: 14.69 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2034, allocations: 0 / 327 MB, free: 14.69 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0107/0.2141, allocations: 3.486 MB / 330.5 MB, free: 11.17 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.2142, allocations: 71.47 kB / 330.6 MB, free: 11.1 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000129/0.2144, allocations: 20 kB / 330.6 MB, free: 11.08 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006331/0.215, allocations: 110.3 kB / 330.7 MB, free: 10.97 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000209/0.2152, allocations: 92.8 kB / 330.8 MB, free: 10.88 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.663e-05/0.2153, allocations: 35.97 kB / 330.8 MB, free: 10.85 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002925/0.2156, allocations: 342.8 kB / 331.2 MB, free: 10.51 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2156, allocations: 0 / 331.2 MB, free: 10.51 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006852/0.2163, allocations: 259.9 kB / 331.4 MB, free: 10.26 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.0002387/0.2165, allocations: 131.6 kB / 331.5 MB, free: 10.12 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003038/0.2195, allocations: 1.327 MB / 332.9 MB, free: 8.766 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.2195, allocations: 0 / 332.9 MB, free: 8.766 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001474/0.221, allocations: 0.6493 MB / 333.5 MB, free: 8.117 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005772/0.2216, allocations: 161.5 kB / 333.7 MB, free: 7.973 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002601/0.2242, allocations: 1.484 MB / 335.2 MB, free: 6.461 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001105/0.2243, allocations: 156 kB / 335.3 MB, free: 6.285 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001957/0.2245, allocations: 59.53 kB / 335.4 MB, free: 6.23 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.2246, allocations: 40.5 kB / 335.4 MB, free: 6.191 MB / 282.7 MB Notification: Performance of SimCode: time 1.012e-06/0.2246, allocations: 0 / 335.4 MB, free: 6.191 MB / 282.7 MB Notification: Performance of Templates: time 0.02489/0.2495, allocations: 20 MB / 355.4 MB, free: 2.395 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_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.4895019996911287]