Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.0009298/0.0009298, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009449/0.0009449, allocations: 143.1 kB / 24.89 MB, free: 8.785 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.9394/0.9394, allocations: 173.4 MB / 201.5 MB, free: 8.273 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.21e-07/9.21e-07, allocations: 0 / 268.5 MB, free: 9.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.512e-05/1.604e-05, allocations: 2.312 kB / 268.5 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002018/0.002034, allocations: 1.73 MB / 270.2 MB, free: 8.074 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004775/0.002512, allocations: 308.9 kB / 270.5 MB, free: 7.773 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.608e-05/0.002578, allocations: 7.938 kB / 270.5 MB, free: 7.766 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.845e-05/0.002666, allocations: 23.73 kB / 270.5 MB, free: 7.742 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.422e-05/0.002701, allocations: 15.8 kB / 270.6 MB, free: 7.727 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004716/0.003172, allocations: 133.5 kB / 270.7 MB, free: 7.598 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003446/0.003517, allocations: 279.4 kB / 271 MB, free: 7.324 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002393/0.003756, allocations: 162.9 kB / 271.1 MB, free: 7.156 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.003862, allocations: 139.7 kB / 271.3 MB, free: 7.02 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001104/0.003972, allocations: 72.52 kB / 271.3 MB, free: 6.949 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.883e-05/0.004001, allocations: 24 kB / 271.3 MB, free: 6.926 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.773e-05/0.004089, allocations: 32.67 kB / 271.4 MB, free: 6.895 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.017e-05/0.004139, allocations: 64.52 kB / 271.4 MB, free: 6.832 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.796e-05/0.004197, allocations: 67.81 kB / 271.5 MB, free: 6.766 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002401/0.004437, allocations: 197.9 kB / 271.7 MB, free: 6.574 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.00444, allocations: 0 / 271.7 MB, free: 6.574 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.004441, allocations: 0 / 271.7 MB, free: 6.574 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.147e-06/0.004445, allocations: 0 / 271.7 MB, free: 6.574 MB / 250.7 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.0004138/0.004859, allocations: 399.7 kB / 272.1 MB, free: 6.16 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.131e-05/0.00489, allocations: 8.031 kB / 272.1 MB, free: 6.152 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.374e-05/0.004944, allocations: 40.91 kB / 272.1 MB, free: 6.113 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001888/0.005132, allocations: 150.1 kB / 272.3 MB, free: 5.941 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.614e-05/0.005159, allocations: 25.8 kB / 272.3 MB, free: 5.918 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.005182, allocations: 28.38 kB / 272.3 MB, free: 5.891 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002426/0.005425, allocations: 231 kB / 272.6 MB, free: 5.645 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.005435, allocations: 192 / 272.6 MB, free: 5.645 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.825e-05/0.005453, allocations: 16.38 kB / 272.6 MB, free: 5.629 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.005463, allocations: 8.375 kB / 272.6 MB, free: 5.621 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.369e-05/0.005557, allocations: 71.33 kB / 272.7 MB, free: 5.555 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008079/0.006365, allocations: 0.7271 MB / 273.4 MB, free: 4.797 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001825/0.006547, allocations: 109.2 kB / 273.5 MB, free: 4.672 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.862e-05/0.006596, allocations: 49.64 kB / 273.5 MB, free: 4.617 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.006616, allocations: 4 kB / 273.5 MB, free: 4.613 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001377/0.006753, allocations: 124.9 kB / 273.7 MB, free: 4.473 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.006755, allocations: 0 / 273.7 MB, free: 4.473 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002162/0.006971, allocations: 140.4 kB / 273.8 MB, free: 4.332 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/0.007026, allocations: 81.11 kB / 273.9 MB, free: 4.234 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.007137, allocations: 170.3 kB / 274.1 MB, free: 4.055 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.007162, allocations: 41.69 kB / 274.1 MB, free: 4.008 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.418e-05/0.007246, allocations: 136.8 kB / 274.2 MB, free: 3.867 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.273e-05/0.007289, allocations: 63.52 kB / 274.3 MB, free: 3.805 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.594e-05/0.007375, allocations: 81.61 kB / 274.4 MB, free: 3.719 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.007495, allocations: 326.8 kB / 274.7 MB, free: 3.391 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.12e-05/0.007546, allocations: 36.05 kB / 274.7 MB, free: 3.355 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.414e-05/0.00764, allocations: 116.1 kB / 274.8 MB, free: 3.211 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001448/0.007785, allocations: 144.4 kB / 275 MB, free: 3.039 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.007788, allocations: 4 kB / 275 MB, free: 3.035 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001788/0.007966, allocations: 173.9 kB / 275.2 MB, free: 2.859 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.007982, allocations: 11.94 kB / 275.2 MB, free: 2.848 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.007988, allocations: 0 / 275.2 MB, free: 2.848 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.008002, allocations: 4 kB / 275.2 MB, free: 2.844 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.008121, allocations: 43.92 kB / 275.2 MB, free: 2.801 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.008127, allocations: 7.984 kB / 275.2 MB, free: 2.793 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.455e-05/0.008192, allocations: 36.05 kB / 275.3 MB, free: 2.758 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/0.008211, allocations: 12 kB / 275.3 MB, free: 2.746 MB / 250.7 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,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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 9.681e-05/0.008307, allocations: 133.7 kB / 275.4 MB, free: 2.605 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.929e-05/0.008327, allocations: 19.98 kB / 275.4 MB, free: 2.586 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001545/0.008481, allocations: 132.5 kB / 275.5 MB, free: 2.449 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.008484, allocations: 0 / 275.5 MB, free: 2.449 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.008487, allocations: 4 kB / 275.5 MB, free: 2.445 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.008492, allocations: 0 / 275.5 MB, free: 2.445 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003581/0.00885, allocations: 375.5 kB / 275.9 MB, free: 2.051 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.008852, allocations: 4 kB / 275.9 MB, free: 2.047 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.194e-05/0.008904, allocations: 27.92 kB / 275.9 MB, free: 2.02 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.008907, allocations: 0 / 275.9 MB, free: 2.02 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.008916, allocations: 4 kB / 275.9 MB, free: 2.016 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.008919, allocations: 4 kB / 276 MB, free: 2.012 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.00892, allocations: 0 / 276 MB, free: 2.012 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001378/0.009058, allocations: 220.2 kB / 276.2 MB, free: 1.777 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.384e-05/0.009071, allocations: 15.84 kB / 276.2 MB, free: 1.762 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.746e-05/0.009089, allocations: 11.92 kB / 276.2 MB, free: 1.75 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.623e-05/0.009135, allocations: 8 kB / 276.2 MB, free: 1.742 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.631e-05/0.009181, allocations: 27.91 kB / 276.2 MB, free: 1.715 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.009193, allocations: 7.984 kB / 276.2 MB, free: 1.707 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.938e-05/0.009212, allocations: 23.5 kB / 276.3 MB, free: 1.684 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009212, allocations: 0 / 276.3 MB, free: 1.684 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001963/0.009409, allocations: 51.89 kB / 276.3 MB, free: 1.633 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0001133/0.009522, allocations: 100.1 kB / 276.4 MB, free: 1.527 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001635/0.009686, allocations: 134 kB / 276.5 MB, free: 1.395 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.009691, allocations: 4 kB / 276.5 MB, free: 1.391 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.712e-05/0.009758, allocations: 65.86 kB / 276.6 MB, free: 1.324 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001677/0.009925, allocations: 35.86 kB / 276.6 MB, free: 1.289 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004392/0.01036, allocations: 338.6 kB / 277 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.844e-05/0.01041, allocations: 76.33 kB / 277 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.022e-05/0.01047, allocations: 30.02 kB / 277.1 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.672e-05/0.01056, allocations: 83.36 kB / 277.2 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01056, allocations: 0 / 277.2 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of Templates: time 0.004226/0.01479, allocations: 2.155 MB / 279.3 MB, free: 14.61 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5314177507534623]