Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001741/0.001741, allocations: 116.8 kB / 18.5 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001922/0.001922, allocations: 212.9 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.616/1.616, allocations: 230.2 MB / 254.5 MB, free: 15.22 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002111/0.002111, allocations: 59.89 kB / 373.8 MB, free: 9.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1452, allocations: 53.31 MB / 427.1 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003736/0.149, allocations: 1.719 MB / 428.8 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008615/0.1498, allocations: 291.1 kB / 429.1 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.15, allocations: 4 kB / 429.1 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001625/0.1501, allocations: 31.61 kB / 429.2 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.928e-05/0.1502, allocations: 19.81 kB / 429.2 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004604/0.1506, allocations: 119.8 kB / 429.3 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000386/0.151, allocations: 267.5 kB / 429.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003179/0.1513, allocations: 161.5 kB / 429.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001118/0.1515, allocations: 83.72 kB / 429.8 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001638/0.1516, allocations: 103.6 kB / 429.9 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.749e-05/0.1517, allocations: 24 kB / 429.9 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.05e-05/0.1517, allocations: 24 kB / 429.9 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.66e-05/0.1518, allocations: 63.77 kB / 430 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001409/0.152, allocations: 103.5 kB / 430.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003981/0.1524, allocations: 254.9 kB / 430.4 MB, free: 1.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.1524, allocations: 4 kB / 430.4 MB, free: 1.227 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1524, allocations: 0 / 430.4 MB, free: 1.227 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.428e-05/0.1524, allocations: 0 / 430.4 MB, free: 1.227 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008568/0.1532, allocations: 494.5 kB / 430.8 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/0.1533, allocations: 8.031 kB / 430.8 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002542/0.1535, allocations: 36.78 kB / 430.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000386/0.1539, allocations: 236 kB / 431.1 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.821e-05/0.154, allocations: 28.88 kB / 431.1 MB, free: 360 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.261e-05/0.154, allocations: 28.38 kB / 431.2 MB, free: 332 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005365/0.1546, allocations: 270.6 kB / 431.4 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.1546, allocations: 4.125 kB / 431.4 MB, free: 32 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.169e-05/0.1546, allocations: 15.94 kB / 431.5 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1546, allocations: 4 kB / 431.5 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003379/0.155, allocations: 161.6 kB / 431.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.1564, allocations: 0.9596 MB / 432.6 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003305/0.1568, allocations: 159.1 kB / 432.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/0.1569, allocations: 73.62 kB / 432.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/0.1569, allocations: 4 kB / 432.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002352/0.1571, allocations: 133.1 kB / 432.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.714e-06/0.1571, allocations: 0 / 432.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004973/0.1576, allocations: 217.3 kB / 433.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.465e-05/0.1577, allocations: 89.23 kB / 433.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/0.1579, allocations: 156.5 kB / 433.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.733e-05/0.1579, allocations: 37.7 kB / 433.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.1581, allocations: 148.7 kB / 433.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.529e-05/0.1581, allocations: 59.52 kB / 433.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.1582, allocations: 85.41 kB / 433.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001938/0.1584, allocations: 334.8 kB / 434 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.1585, allocations: 59.97 kB / 434.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001949/0.1587, allocations: 144.3 kB / 434.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000306/0.1591, allocations: 200.3 kB / 434.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.1591, allocations: 0 / 434.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004302/0.1595, allocations: 257.3 kB / 434.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.1595, allocations: 4 kB / 434.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.1595, allocations: 4 kB / 434.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.483e-05/0.1595, allocations: 4 kB / 434.7 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.1597, allocations: 27.92 kB / 434.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/0.1597, allocations: 7.938 kB / 434.7 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.1598, allocations: 31.83 kB / 434.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.1599, allocations: 16.28 kB / 434.8 MB, free: 12.46 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002065/0.1601, allocations: 165.6 kB / 434.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.067e-05/0.1601, allocations: 19.89 kB / 435 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.674e-05/0.1601, allocations: 16.84 kB / 435 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.1602, allocations: 4 kB / 435 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.1602, allocations: 0 / 435 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.1602, allocations: 4 kB / 435 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008159/0.161, allocations: 0.5798 MB / 435.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.161, allocations: 0 / 435.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.074e-05/0.1611, allocations: 15.98 kB / 435.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.1611, allocations: 4 kB / 435.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.1611, allocations: 4 kB / 435.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.1611, allocations: 3.938 kB / 435.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1611, allocations: 4 kB / 435.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003272/0.1614, allocations: 276.1 kB / 435.9 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.962e-05/0.1615, allocations: 85.06 kB / 435.9 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.976e-05/0.1615, allocations: 8 kB / 436 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.266e-05/0.1616, allocations: 11.92 kB / 436 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.855e-05/0.1617, allocations: 23.97 kB / 436 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.76e-05/0.1617, allocations: 4 kB / 436 MB, free: 11.13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.897e-05/0.1618, allocations: 99.27 kB / 436.1 MB, free: 11.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1618, allocations: 0 / 436.1 MB, free: 11.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003169/0.1621, allocations: 51.84 kB / 436.1 MB, free: 10.98 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001496/0.1623, allocations: 111.1 kB / 436.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000351/0.1626, allocations: 164.1 kB / 436.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1626, allocations: 0 / 436.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001422/0.1627, allocations: 79.7 kB / 436.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003273/0.1631, allocations: 35.28 kB / 436.5 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006955/0.1638, allocations: 332.4 kB / 436.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004168/0.1642, allocations: 0.7287 MB / 437.6 MB, free: 9.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.657e-05/0.1643, allocations: 25.94 kB / 437.6 MB, free: 9.453 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.153e-05/0.1643, allocations: 19.44 kB / 437.6 MB, free: 9.434 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1643, allocations: 0 / 437.6 MB, free: 9.434 MB / 366.1 MB Notification: Performance of Templates: time 0.005805/0.1701, allocations: 1.719 MB / 439.3 MB, free: 7.723 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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.32297798525542]