Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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.001922/0.001922, allocations: 114.2 kB / 19.04 MB, free: 3.281 MB / 14.72 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.001665/0.001665, allocations: 188.5 kB / 22.21 MB, free: 112 kB / 14.72 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.525/1.525, allocations: 225.6 MB / 250.8 MB, free: 13.42 MB / 206.1 MB " [Timeout remaining time 178] 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.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 51.92 kB / 368.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3465/0.3481, allocations: 52.14 MB / 420.8 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003504/0.3516, allocations: 1.499 MB / 422.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007932/0.3524, allocations: 277.2 kB / 422.6 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.3525, allocations: 7.938 kB / 422.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001784/0.3527, allocations: 23.75 kB / 422.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.397e-05/0.3528, allocations: 19.78 kB / 422.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005024/0.3533, allocations: 115.8 kB / 422.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003752/0.3536, allocations: 259.5 kB / 423 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003461/0.354, allocations: 142.4 kB / 423.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.3541, allocations: 87.75 kB / 423.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001817/0.3543, allocations: 99.48 kB / 423.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.078e-05/0.3543, allocations: 20 kB / 423.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.553e-05/0.3544, allocations: 31.98 kB / 423.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.878e-05/0.3545, allocations: 51.89 kB / 423.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.3546, allocations: 95.53 kB / 423.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000402/0.355, allocations: 252.2 kB / 423.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.355, allocations: 0 / 423.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.355, allocations: 0 / 423.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.355, allocations: 0 / 423.8 MB, free: 12.19 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008659/0.3559, allocations: 490.2 kB / 424.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.356, allocations: 8.031 kB / 424.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.642e-05/0.356, allocations: 24.8 kB / 424.3 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003766/0.3564, allocations: 240 kB / 424.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.594e-05/0.3564, allocations: 20.94 kB / 424.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.099e-05/0.3565, allocations: 28.31 kB / 424.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004669/0.357, allocations: 244 kB / 424.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.357, allocations: 3.938 kB / 424.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.357, allocations: 4 kB / 424.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.357, allocations: 8 kB / 424.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003319/0.3573, allocations: 161.6 kB / 425 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001101/0.3584, allocations: 0.6859 MB / 425.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003422/0.3588, allocations: 162.8 kB / 425.8 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.3589, allocations: 64.83 kB / 425.9 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.082e-05/0.3589, allocations: 11.94 kB / 425.9 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002461/0.3592, allocations: 122.8 kB / 426 MB, free: 9.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.3592, allocations: 0 / 426 MB, free: 9.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000504/0.3597, allocations: 217.4 kB / 426.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.501e-05/0.3598, allocations: 59.39 kB / 426.3 MB, free: 9.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/0.3599, allocations: 145.9 kB / 426.4 MB, free: 9.328 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.099e-05/0.36, allocations: 37.7 kB / 426.5 MB, free: 9.285 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.3601, allocations: 136.8 kB / 426.6 MB, free: 9.148 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.921e-05/0.3602, allocations: 63.52 kB / 426.7 MB, free: 9.086 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.3603, allocations: 73.97 kB / 426.7 MB, free: 9.004 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.3605, allocations: 330.8 kB / 427.1 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.3606, allocations: 68.56 kB / 427.1 MB, free: 8.605 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.3608, allocations: 124.1 kB / 427.3 MB, free: 8.461 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002722/0.3611, allocations: 183.5 kB / 427.4 MB, free: 8.258 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3611, allocations: 0 / 427.4 MB, free: 8.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004007/0.3615, allocations: 245.3 kB / 427.7 MB, free: 8.012 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.3615, allocations: 8 kB / 427.7 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.034e-06/0.3615, allocations: 0 / 427.7 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.222e-05/0.3615, allocations: 4 kB / 427.7 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.3617, allocations: 31.92 kB / 427.7 MB, free: 7.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.3617, allocations: 11.92 kB / 427.7 MB, free: 7.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.533e-05/0.3618, allocations: 28.05 kB / 427.8 MB, free: 7.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.873e-05/0.3618, allocations: 12 kB / 427.8 MB, free: 7.918 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001682/0.362, allocations: 157.7 kB / 427.9 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.228e-05/0.362, allocations: 11.91 kB / 427.9 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003778/0.3624, allocations: 198.3 kB / 428.1 MB, free: 7.543 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.3624, allocations: 4 kB / 428.1 MB, free: 7.539 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.3624, allocations: 3.984 kB / 428.1 MB, free: 7.535 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3624, allocations: 0 / 428.1 MB, free: 7.535 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007834/0.3632, allocations: 0.5723 MB / 428.7 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.3632, allocations: 0 / 428.7 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-05/0.3632, allocations: 12 kB / 428.7 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.3632, allocations: 0 / 428.7 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.216e-05/0.3633, allocations: 15.92 kB / 428.7 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.3633, allocations: 0 / 428.7 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3633, allocations: 3.938 kB / 428.7 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003713/0.3636, allocations: 283.3 kB / 429 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.604e-05/0.3637, allocations: 89 kB / 429.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.818e-05/0.3637, allocations: 4 kB / 429.1 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.82e-05/0.3638, allocations: 12 kB / 429.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.653e-05/0.3639, allocations: 27.91 kB / 429.1 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.746e-05/0.3639, allocations: 7.984 kB / 429.2 MB, free: 6.426 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.075e-05/0.364, allocations: 97.64 kB / 429.3 MB, free: 6.332 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.364, allocations: 4 kB / 429.3 MB, free: 6.328 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000293/0.3643, allocations: 47.89 kB / 429.3 MB, free: 6.281 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001699/0.3645, allocations: 115.1 kB / 429.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003756/0.3649, allocations: 164.1 kB / 429.6 MB, free: 6 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3649, allocations: 0 / 429.6 MB, free: 6 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001552/0.365, allocations: 80.5 kB / 429.7 MB, free: 5.922 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.3653, allocations: 23.92 kB / 429.7 MB, free: 5.898 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007072/0.366, allocations: 348.2 kB / 430 MB, free: 5.527 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004224/0.3664, allocations: 0.7322 MB / 430.7 MB, free: 4.766 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.753e-05/0.3665, allocations: 25.94 kB / 430.8 MB, free: 4.742 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.832e-05/0.3666, allocations: 19.44 kB / 430.8 MB, free: 4.723 MB / 334.1 MB Notification: Performance of SimCode: time 9.81e-07/0.3666, allocations: 0 / 430.8 MB, free: 4.723 MB / 334.1 MB Notification: Performance of Templates: time 0.006051/0.3726, allocations: 1.955 MB / 432.7 MB, free: 2.773 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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.013253539800644]