Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009736/0.0009737, allocations: 177.7 kB / 17.36 MB, free: 4.199 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.383/1.383, allocations: 205.6 MB / 223.7 MB, free: 8.949 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007199/0.0007201, allocations: 94.44 kB / 272.1 MB, free: 8.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003566, allocations: 4 kB / 329 MB, free: 15.08 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2652, allocations: 47.58 MB / 376.6 MB, free: 45.62 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002281/0.2675, allocations: 1.402 MB / 378 MB, free: 44.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007399/0.2683, allocations: 354.4 kB / 378.3 MB, free: 44.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.2684, allocations: 7.375 kB / 378.3 MB, free: 44.19 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.2685, allocations: 19.14 kB / 378.4 MB, free: 44.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.359e-05/0.2686, allocations: 9 kB / 378.4 MB, free: 44.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003903/0.269, allocations: 107 kB / 378.5 MB, free: 44.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003483/0.2694, allocations: 240.4 kB / 378.7 MB, free: 43.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003358/0.2697, allocations: 167.5 kB / 378.9 MB, free: 43.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.2698, allocations: 71.23 kB / 378.9 MB, free: 43.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.27, allocations: 77.33 kB / 379 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.513e-05/0.27, allocations: 14.75 kB / 379 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.45e-05/0.2701, allocations: 20.61 kB / 379.1 MB, free: 43.74 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.791e-05/0.2702, allocations: 37.62 kB / 379.1 MB, free: 43.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.2703, allocations: 113.5 kB / 379.2 MB, free: 43.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002525/0.2706, allocations: 206.9 kB / 379.4 MB, free: 43.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.2706, allocations: 5.078 kB / 379.4 MB, free: 43.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2706, allocations: 0 / 379.4 MB, free: 43.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.2706, allocations: 0 / 379.4 MB, free: 43.46 MB / 298.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.0005768/0.2712, allocations: 443.6 kB / 379.8 MB, free: 43.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.2712, allocations: 8.812 kB / 379.8 MB, free: 43.01 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.982e-05/0.2713, allocations: 25.69 kB / 379.9 MB, free: 43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002275/0.2716, allocations: 231.1 kB / 380.1 MB, free: 42.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.571e-05/0.2716, allocations: 21.56 kB / 380.1 MB, free: 42.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.854e-05/0.2717, allocations: 26.44 kB / 380.1 MB, free: 42.74 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005277/0.2722, allocations: 276.4 kB / 380.4 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.2722, allocations: 5.125 kB / 380.4 MB, free: 42.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.528e-05/0.2723, allocations: 14.25 kB / 380.4 MB, free: 42.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.2723, allocations: 6.625 kB / 380.4 MB, free: 42.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004007/0.2727, allocations: 164.5 kB / 380.6 MB, free: 42.44 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001193/0.2739, allocations: 0.9689 MB / 381.6 MB, free: 41.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003257/0.2743, allocations: 154.9 kB / 381.7 MB, free: 41.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001421/0.2744, allocations: 76.95 kB / 381.8 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.921e-05/0.2744, allocations: 1.531 kB / 381.8 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002498/0.2747, allocations: 112.6 kB / 381.9 MB, free: 41.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.933e-06/0.2747, allocations: 0 / 381.9 MB, free: 41.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004946/0.2752, allocations: 209.7 kB / 382.1 MB, free: 41.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.992e-05/0.2753, allocations: 55.66 kB / 382.2 MB, free: 41.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.2754, allocations: 163 kB / 382.3 MB, free: 41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.183e-05/0.2754, allocations: 41.84 kB / 382.4 MB, free: 40.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7e-05/0.2755, allocations: 139.1 kB / 382.5 MB, free: 40.83 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.99e-05/0.2756, allocations: 60.2 kB / 382.6 MB, free: 40.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.581e-05/0.2756, allocations: 5.125 kB / 382.6 MB, free: 40.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.637e-05/0.2756, allocations: 335.1 kB / 382.9 MB, free: 40.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001489/0.2758, allocations: 64.16 kB / 383 MB, free: 40.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.276, allocations: 133.3 kB / 383.1 MB, free: 40.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002887/0.2763, allocations: 187.5 kB / 383.3 MB, free: 40.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.2763, allocations: 1.625 kB / 383.3 MB, free: 40.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004875/0.2768, allocations: 247.6 kB / 383.5 MB, free: 40.01 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.2768, allocations: 9.25 kB / 383.5 MB, free: 40.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.2769, allocations: 3.062 kB / 383.5 MB, free: 40.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.587e-05/0.2769, allocations: 7.078 kB / 383.5 MB, free: 40.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001824/0.2771, allocations: 34.77 kB / 383.6 MB, free: 40 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.2771, allocations: 4.25 kB / 383.6 MB, free: 40 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001461/0.2773, allocations: 24.91 kB / 383.6 MB, free: 39.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.666e-05/0.2773, allocations: 14.5 kB / 383.6 MB, free: 39.98 MB / 298.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: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,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 (40): * Single equations (assignments): 40 * 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.0001428/0.2775, allocations: 161.6 kB / 383.8 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.084e-05/0.2775, allocations: 22.02 kB / 383.8 MB, free: 39.81 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004187/0.2779, allocations: 188.5 kB / 384 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.2779, allocations: 2.25 kB / 384 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.278, allocations: 1.188 kB / 384 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.278, allocations: 7.938 kB / 384 MB, free: 39.69 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008326/0.2788, allocations: 0.5903 MB / 384.6 MB, free: 39.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.2788, allocations: 0 / 384.6 MB, free: 39.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.2789, allocations: 14.97 kB / 384.6 MB, free: 39.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.279, allocations: 5.25 kB / 384.6 MB, free: 39.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.279, allocations: 9.391 kB / 384.6 MB, free: 39.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.279, allocations: 5.406 kB / 384.6 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.279, allocations: 4 kB / 384.6 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003553/0.2794, allocations: 272.4 kB / 384.9 MB, free: 38.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.981e-05/0.2794, allocations: 93.73 kB / 385 MB, free: 38.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.198e-05/0.2795, allocations: 5.188 kB / 385 MB, free: 38.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.2796, allocations: 8.25 kB / 385 MB, free: 38.85 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.249e-05/0.2797, allocations: 16.88 kB / 385 MB, free: 38.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.108e-05/0.2797, allocations: 9.25 kB / 385 MB, free: 38.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.419e-05/0.2798, allocations: 103.2 kB / 385.1 MB, free: 38.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2798, allocations: 0 / 385.1 MB, free: 38.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004976/0.2803, allocations: 50.16 kB / 385.2 MB, free: 38.73 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 (step.active,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,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 (25): * Single equations (assignments): 21 * 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.0001639/0.2805, allocations: 115.8 kB / 385.3 MB, free: 38.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004482/0.281, allocations: 185.9 kB / 385.5 MB, free: 38.56 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.281, allocations: 0.5625 kB / 385.5 MB, free: 38.56 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001794/0.2812, allocations: 88.5 kB / 385.5 MB, free: 38.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004328/0.2816, allocations: 24.17 kB / 385.6 MB, free: 38.5 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007863/0.2824, allocations: 404.7 kB / 386 MB, free: 38.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/0.2826, allocations: 0.7435 MB / 386.7 MB, free: 37.46 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001204/0.2828, allocations: 19.92 kB / 386.7 MB, free: 37.46 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.331e-05/0.2829, allocations: 27.89 kB / 386.7 MB, free: 37.45 MB / 298.7 MB Notification: Performance of SimCode: time 2.8e-07/0.2829, allocations: 0 / 386.7 MB, free: 37.45 MB / 298.7 MB Notification: Performance of Templates: time 0.006082/0.289, allocations: 1.707 MB / 388.5 MB, free: 36.14 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches