Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001563/0.001563, allocations: 118.6 kB / 18.5 MB, free: 4.543 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.001689/0.001689, allocations: 202.6 kB / 21.45 MB, free: 1.59 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.575/1.575, allocations: 230.2 MB / 254.5 MB, free: 15.26 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001998/0.001998, allocations: 71.88 kB / 373.8 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.1477, allocations: 53.32 MB / 427.1 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003861/0.1516, allocations: 1.684 MB / 428.8 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008695/0.1524, allocations: 283.2 kB / 429.1 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.1526, allocations: 7.938 kB / 429.1 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000172/0.1527, allocations: 27.73 kB / 429.1 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.6e-05/0.1528, allocations: 23.72 kB / 429.1 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004657/0.1532, allocations: 115.8 kB / 429.3 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003663/0.1536, allocations: 271.5 kB / 429.5 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003437/0.154, allocations: 162.9 kB / 429.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001288/0.1541, allocations: 91.69 kB / 429.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001666/0.1543, allocations: 99.59 kB / 429.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.682e-05/0.1543, allocations: 28 kB / 429.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.589e-05/0.1544, allocations: 31.94 kB / 429.9 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.747e-05/0.1544, allocations: 55.83 kB / 430 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.1546, allocations: 107.5 kB / 430.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003854/0.155, allocations: 254.9 kB / 430.3 MB, free: 1.285 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.155, allocations: 4 kB / 430.3 MB, free: 1.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.155, allocations: 0 / 430.3 MB, free: 1.281 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.155, allocations: 0 / 430.3 MB, free: 1.281 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.0009487/0.1559, allocations: 0.4905 MB / 430.8 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.607e-05/0.156, allocations: 12.03 kB / 430.8 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002825/0.1563, allocations: 32.78 kB / 430.9 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004045/0.1567, allocations: 232 kB / 431.1 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.111e-05/0.1567, allocations: 24.92 kB / 431.1 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.513e-05/0.1568, allocations: 24.38 kB / 431.1 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005491/0.1573, allocations: 270.5 kB / 431.4 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.1573, allocations: 8.188 kB / 431.4 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.348e-05/0.1574, allocations: 15.92 kB / 431.4 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.1574, allocations: 12 kB / 431.4 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003347/0.1577, allocations: 161.6 kB / 431.6 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.1591, allocations: 0.9596 MB / 432.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003081/0.1594, allocations: 157.8 kB / 432.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001364/0.1595, allocations: 77.56 kB / 432.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.1595, allocations: 8 kB / 432.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002416/0.1598, allocations: 141 kB / 432.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.363e-06/0.1598, allocations: 0 / 432.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004694/0.1603, allocations: 217.4 kB / 433.2 MB, free: 14.24 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.16e-05/0.1603, allocations: 85.05 kB / 433.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.1605, allocations: 157.8 kB / 433.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.862e-05/0.1605, allocations: 37.64 kB / 433.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.1606, allocations: 148.7 kB / 433.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.963e-05/0.1607, allocations: 59.58 kB / 433.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.1608, allocations: 81.64 kB / 433.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.161, allocations: 330.8 kB / 434 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001363/0.1611, allocations: 71.75 kB / 434.1 MB, free: 13.24 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/0.1613, allocations: 140.3 kB / 434.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002863/0.1616, allocations: 196.3 kB / 434.4 MB, free: 12.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1616, allocations: 0 / 434.4 MB, free: 12.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000405/0.162, allocations: 253.3 kB / 434.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.162, allocations: 4 kB / 434.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.162, allocations: 4 kB / 434.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/0.162, allocations: 4 kB / 434.7 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.1622, allocations: 35.92 kB / 434.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.1622, allocations: 7.984 kB / 434.7 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.1623, allocations: 31.77 kB / 434.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.975e-05/0.1623, allocations: 12 kB / 434.8 MB, free: 12.5 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.0001824/0.1625, allocations: 169.9 kB / 434.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.46e-05/0.1625, allocations: 11.94 kB / 435 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.39e-05/0.1626, allocations: 16.84 kB / 435 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.1626, allocations: 4 kB / 435 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.1626, allocations: 0 / 435 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.1626, allocations: 0 / 435 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007669/0.1634, allocations: 0.5759 MB / 435.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1634, allocations: 0 / 435.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.193e-05/0.1634, allocations: 23.98 kB / 435.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.1634, allocations: 0 / 435.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.1635, allocations: 4 kB / 435.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.1635, allocations: 3.938 kB / 435.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.1635, allocations: 3.938 kB / 435.6 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003512/0.1638, allocations: 272.1 kB / 435.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.329e-05/0.1639, allocations: 96.95 kB / 435.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.881e-05/0.1639, allocations: 11.98 kB / 436 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.261e-05/0.164, allocations: 15.94 kB / 436 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.047e-05/0.1641, allocations: 23.91 kB / 436 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.1641, allocations: 8 kB / 436 MB, free: 11.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.869e-05/0.1642, allocations: 104.6 kB / 436.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1642, allocations: 0 / 436.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002922/0.1645, allocations: 47.89 kB / 436.2 MB, free: 11.01 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,step.active,transition1.enableFire,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.0001405/0.1646, allocations: 107.2 kB / 436.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003488/0.165, allocations: 168 kB / 436.4 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.165, allocations: 0 / 436.4 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001456/0.1651, allocations: 79.7 kB / 436.5 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.1654, allocations: 19.98 kB / 436.5 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006779/0.1661, allocations: 341 kB / 436.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003693/0.1665, allocations: 0.7326 MB / 437.6 MB, free: 9.512 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.92e-05/0.1665, allocations: 21.95 kB / 437.6 MB, free: 9.488 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.778e-05/0.1666, allocations: 19.44 kB / 437.6 MB, free: 9.469 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1666, allocations: 0 / 437.6 MB, free: 9.469 MB / 366.1 MB Notification: Performance of Templates: time 0.005195/0.1718, allocations: 1.74 MB / 439.4 MB, free: 7.738 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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.313886136747897]