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.001032/0.001032, allocations: 84 kB / 21.43 MB, free: 3.129 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.004917/0.004917, allocations: 144.4 kB / 24.68 MB, free: 9.426 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.8174/0.8174, allocations: 173.4 MB / 201.2 MB, free: 9.422 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.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 1.493e-06/1.493e-06, allocations: 3.938 kB / 319.6 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.617e-05/2.766e-05, allocations: 5.516 kB / 319.7 MB, free: 5.871 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00176/0.001788, allocations: 1.457 MB / 321.1 MB, free: 4.402 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004954/0.002283, allocations: 287.1 kB / 321.4 MB, free: 4.121 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.476e-05/0.002358, allocations: 7.938 kB / 321.4 MB, free: 4.113 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.002468, allocations: 19.73 kB / 321.4 MB, free: 4.094 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.048e-05/0.002499, allocations: 19.81 kB / 321.4 MB, free: 4.074 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003384/0.002837, allocations: 119.8 kB / 321.6 MB, free: 3.957 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002223/0.00306, allocations: 267.4 kB / 321.8 MB, free: 3.695 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002139/0.003273, allocations: 138.7 kB / 321.9 MB, free: 3.551 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.003378, allocations: 127.8 kB / 322.1 MB, free: 3.426 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.44e-05/0.003473, allocations: 67.77 kB / 322.1 MB, free: 3.359 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.899e-05/0.003502, allocations: 24 kB / 322.2 MB, free: 3.336 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.492e-05/0.003567, allocations: 31.98 kB / 322.2 MB, free: 3.305 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.502e-05/0.003612, allocations: 55.81 kB / 322.2 MB, free: 3.25 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.509e-05/0.003667, allocations: 67.83 kB / 322.3 MB, free: 3.184 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002293/0.003896, allocations: 255.1 kB / 322.6 MB, free: 2.934 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.0039, allocations: 4 kB / 322.6 MB, free: 2.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.003901, allocations: 0 / 322.6 MB, free: 2.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.003905, allocations: 0 / 322.6 MB, free: 2.93 MB / 282.7 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.0004719/0.004377, allocations: 409.1 kB / 323 MB, free: 2.5 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.004411, allocations: 12.92 kB / 323 MB, free: 2.488 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.096e-05/0.004462, allocations: 28.78 kB / 323 MB, free: 2.461 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002151/0.004677, allocations: 169.5 kB / 323.2 MB, free: 2.27 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.63e-05/0.004703, allocations: 20.88 kB / 323.2 MB, free: 2.25 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.516e-05/0.004728, allocations: 32.31 kB / 323.2 MB, free: 2.219 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002786/0.005007, allocations: 239.3 kB / 323.5 MB, free: 1.973 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.005018, allocations: 4.188 kB / 323.5 MB, free: 1.969 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.005036, allocations: 8.359 kB / 323.5 MB, free: 1.961 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.005042, allocations: 4.375 kB / 323.5 MB, free: 1.957 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001935/0.005236, allocations: 165.8 kB / 323.6 MB, free: 1.793 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009015/0.006137, allocations: 0.5738 MB / 324.2 MB, free: 1.188 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000205/0.006342, allocations: 150.8 kB / 324.4 MB, free: 1.031 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.269e-05/0.006415, allocations: 72.88 kB / 324.4 MB, free: 0.957 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.006432, allocations: 4 kB / 324.4 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000132/0.006564, allocations: 115.3 kB / 324.5 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.006565, allocations: 0 / 324.5 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002972/0.006863, allocations: 219.8 kB / 324.8 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.006899, allocations: 67.2 kB / 324.8 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.155e-05/0.00698, allocations: 149.9 kB / 325 MB, free: 384 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.007001, allocations: 37.7 kB / 325 MB, free: 340 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.056e-05/0.007071, allocations: 128.8 kB / 325.1 MB, free: 204 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.784e-05/0.007109, allocations: 75.41 kB / 325.2 MB, free: 128 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.208e-05/0.007171, allocations: 74 kB / 325.3 MB, free: 44 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.967e-05/0.007261, allocations: 330.8 kB / 325.6 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.505e-05/0.007336, allocations: 60.62 kB / 325.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.53e-05/0.007431, allocations: 128.1 kB / 325.8 MB, free: 15.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000159/0.00759, allocations: 166.7 kB / 326 MB, free: 15.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.007592, allocations: 3.938 kB / 326 MB, free: 15.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002317/0.007824, allocations: 249.4 kB / 326.2 MB, free: 15.06 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.007839, allocations: 7.938 kB / 326.2 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.007846, allocations: 4 kB / 326.2 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.007862, allocations: 11.92 kB / 326.2 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.128e-05/0.007953, allocations: 27.92 kB / 326.3 MB, free: 15.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.007959, allocations: 4 kB / 326.3 MB, free: 15.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.477e-05/0.008014, allocations: 24.06 kB / 326.3 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.291e-05/0.008037, allocations: 23.98 kB / 326.3 MB, free: 14.96 MB / 298.7 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 9.985e-05/0.008136, allocations: 153.8 kB / 326.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.425e-05/0.008151, allocations: 11.95 kB / 326.5 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002294/0.00838, allocations: 211 kB / 326.7 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.008384, allocations: 7.938 kB / 326.7 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.008389, allocations: 0 / 326.7 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.008392, allocations: 0 / 326.7 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004115/0.008804, allocations: 493.7 kB / 327.2 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.008805, allocations: 0 / 327.2 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.054e-05/0.008846, allocations: 19.98 kB / 327.2 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.008849, allocations: 4 kB / 327.2 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.008859, allocations: 4 kB / 327.2 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.008861, allocations: 0 / 327.2 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.008863, allocations: 4 kB / 327.2 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001919/0.009055, allocations: 287.2 kB / 327.5 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.239e-05/0.009067, allocations: 15.84 kB / 327.5 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/0.009083, allocations: 4 kB / 327.5 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.525e-05/0.009128, allocations: 7.984 kB / 327.5 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.616e-05/0.009185, allocations: 23.95 kB / 327.5 MB, free: 13.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.009197, allocations: 16 kB / 327.5 MB, free: 13.65 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.714e-05/0.009234, allocations: 94.77 kB / 327.6 MB, free: 13.56 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009234, allocations: 0 / 327.6 MB, free: 13.56 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001884/0.009422, allocations: 51.89 kB / 327.7 MB, free: 13.51 MB / 298.7 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.0001221/0.009544, allocations: 107.1 kB / 327.8 MB, free: 13.4 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002162/0.009761, allocations: 167.8 kB / 327.9 MB, free: 13.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.009763, allocations: 4 kB / 328 MB, free: 13.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.812e-05/0.009841, allocations: 72.95 kB / 328 MB, free: 13.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002155/0.01006, allocations: 35.8 kB / 328.1 MB, free: 13.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004301/0.01049, allocations: 349 kB / 328.4 MB, free: 12.75 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.506e-05/0.01056, allocations: 116.6 kB / 328.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.589e-05/0.01061, allocations: 28.48 kB / 328.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01061, allocations: 4 kB / 328.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of Templates: time 0.003037/0.01365, allocations: 2.399 MB / 330.9 MB, free: 10.18 MB / 298.7 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: 4.050437710247934]