Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001428/0.001428, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.0015/0.0015, allocations: 211 kB / 23.73 MB, free: 4.523 MB / 14.72 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 1.521/1.521, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 43.92 kB / 378.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2854, allocations: 53.37 MB / 431.6 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003295/0.2887, allocations: 1.651 MB / 433.2 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007859/0.2895, allocations: 295.2 kB / 433.5 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.2896, allocations: 4 kB / 433.5 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.2898, allocations: 27.67 kB / 433.5 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.137e-05/0.2899, allocations: 27.72 kB / 433.5 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004366/0.2903, allocations: 123.8 kB / 433.7 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004025/0.2907, allocations: 279.4 kB / 433.9 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003437/0.291, allocations: 163.1 kB / 434.1 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001169/0.2912, allocations: 99.7 kB / 434.2 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001533/0.2913, allocations: 103.5 kB / 434.3 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.59e-05/0.2913, allocations: 24 kB / 434.3 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.896e-05/0.2914, allocations: 28 kB / 434.4 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.323e-05/0.2915, allocations: 55.83 kB / 434.4 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.2916, allocations: 91.56 kB / 434.5 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000348/0.292, allocations: 261.4 kB / 434.8 MB, free: 3.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.292, allocations: 4 kB / 434.8 MB, free: 3.484 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.292, allocations: 0 / 434.8 MB, free: 3.484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.292, allocations: 0 / 434.8 MB, free: 3.484 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007482/0.2927, allocations: 421.2 kB / 435.2 MB, free: 3.039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.2927, allocations: 8.031 kB / 435.2 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002688/0.293, allocations: 40.77 kB / 435.2 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003673/0.2934, allocations: 170.2 kB / 435.4 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.64e-05/0.2934, allocations: 20.88 kB / 435.4 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.02e-05/0.2935, allocations: 28.38 kB / 435.4 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005214/0.294, allocations: 269.7 kB / 435.7 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.294, allocations: 192 / 435.7 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.052e-05/0.294, allocations: 15.94 kB / 435.7 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.294, allocations: 8 kB / 435.7 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00032/0.2944, allocations: 165.6 kB / 435.9 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.2955, allocations: 0.8279 MB / 436.7 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002929/0.2958, allocations: 157.4 kB / 436.9 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.2959, allocations: 77.56 kB / 436.9 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.273e-05/0.296, allocations: 4 kB / 436.9 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002187/0.2962, allocations: 134.7 kB / 437.1 MB, free: 1.004 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.2962, allocations: 0 / 437.1 MB, free: 1.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004642/0.2966, allocations: 225.1 kB / 437.3 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.985e-05/0.2967, allocations: 85.11 kB / 437.4 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.2969, allocations: 161.6 kB / 437.5 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.678e-05/0.2969, allocations: 41.62 kB / 437.6 MB, free: 476 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.297, allocations: 144.8 kB / 437.7 MB, free: 324 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.662e-05/0.2971, allocations: 59.55 kB / 437.8 MB, free: 264 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.2972, allocations: 81.67 kB / 437.8 MB, free: 176 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.2974, allocations: 326.8 kB / 438.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.2975, allocations: 63.75 kB / 438.2 MB, free: 15.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001865/0.2977, allocations: 140.5 kB / 438.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002875/0.298, allocations: 196.8 kB / 438.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.298, allocations: 4 kB / 438.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004103/0.2984, allocations: 257.3 kB / 438.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.2984, allocations: 4 kB / 438.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.2984, allocations: 4 kB / 438.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.206e-05/0.2984, allocations: 7.984 kB / 438.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.2986, allocations: 39.86 kB / 438.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.2986, allocations: 7.984 kB / 438.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.2987, allocations: 27.78 kB / 438.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.043e-05/0.2987, allocations: 16 kB / 438.9 MB, free: 15.02 MB / 350.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.0001676/0.2989, allocations: 166 kB / 439.1 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.764e-05/0.2989, allocations: 11.91 kB / 439.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.059e-05/0.2989, allocations: 16.94 kB / 439.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.2989, allocations: 0 / 439.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.299, allocations: 4 kB / 439.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.299, allocations: 0 / 439.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007312/0.2997, allocations: 0.4929 MB / 439.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2997, allocations: 0 / 439.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.58e-05/0.2998, allocations: 15.94 kB / 439.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.706e-06/0.2998, allocations: 7.984 kB / 439.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.643e-05/0.2998, allocations: 8 kB / 439.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.033e-06/0.2998, allocations: 0 / 439.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.2998, allocations: 4 kB / 439.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003434/0.3001, allocations: 274.9 kB / 439.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.325e-05/0.3002, allocations: 23.83 kB / 439.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.818e-05/0.3002, allocations: 4 kB / 439.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.918e-05/0.3003, allocations: 4 kB / 439.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.779e-05/0.3004, allocations: 27.89 kB / 440 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.3004, allocations: 12 kB / 440 MB, free: 13.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.84e-05/0.3005, allocations: 98.5 kB / 440.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3005, allocations: 4 kB / 440.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003225/0.3008, allocations: 51.84 kB / 440.1 MB, free: 13.74 MB / 350.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.0001238/0.3009, allocations: 107.2 kB / 440.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003798/0.3013, allocations: 171.8 kB / 440.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.3013, allocations: 3.938 kB / 440.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.3014, allocations: 75.77 kB / 440.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003241/0.3017, allocations: 24.59 kB / 440.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006483/0.3024, allocations: 340.3 kB / 440.8 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001531/0.3025, allocations: 129.5 kB / 441 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.549e-05/0.3026, allocations: 21.95 kB / 441 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.051e-05/0.3027, allocations: 23.44 kB / 441 MB, free: 12.8 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3027, allocations: 0 / 441 MB, free: 12.8 MB / 350.1 MB Notification: Performance of Templates: time 0.005428/0.3081, allocations: 1.871 MB / 442.9 MB, free: 10.97 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 4.708370052743703]