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.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009607/0.0009608, allocations: 178.1 kB / 17.36 MB, free: 4.32 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.4/1.4, allocations: 205.6 MB / 223.7 MB, free: 8.945 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.0008262/0.0008266, allocations: 94.36 kB / 272.1 MB, free: 8.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002569/0.000257, allocations: 4 kB / 329 MB, free: 15.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2407, allocations: 47.58 MB / 376.6 MB, free: 45.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001396/0.2422, allocations: 1.202 MB / 377.8 MB, free: 44.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005591/0.2428, allocations: 331.5 kB / 378.1 MB, free: 44.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.375e-05/0.2429, allocations: 4.406 kB / 378.1 MB, free: 44.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.531e-05/0.243, allocations: 14.23 kB / 378.1 MB, free: 44.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.162e-05/0.243, allocations: 13.11 kB / 378.1 MB, free: 44.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003418/0.2434, allocations: 102 kB / 378.2 MB, free: 44.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000257/0.2437, allocations: 243.1 kB / 378.5 MB, free: 44.08 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002449/0.2439, allocations: 143.3 kB / 378.6 MB, free: 43.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.847e-05/0.244, allocations: 70.73 kB / 378.7 MB, free: 43.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.2441, allocations: 76.23 kB / 378.8 MB, free: 43.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.632e-05/0.2441, allocations: 10.25 kB / 378.8 MB, free: 43.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.422e-05/0.2442, allocations: 17.41 kB / 378.8 MB, free: 43.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.822e-05/0.2443, allocations: 48.75 kB / 378.8 MB, free: 43.85 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.363e-05/0.2443, allocations: 100.8 kB / 378.9 MB, free: 43.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001985/0.2445, allocations: 195.6 kB / 379.1 MB, free: 43.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2446, allocations: 4 kB / 379.1 MB, free: 43.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.2446, allocations: 1.219 kB / 379.1 MB, free: 43.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.2446, allocations: 3.938 kB / 379.1 MB, free: 43.61 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005063/0.2451, allocations: 444 kB / 379.6 MB, free: 43.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.2451, allocations: 13.38 kB / 379.6 MB, free: 43.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.141e-05/0.2452, allocations: 23.31 kB / 379.6 MB, free: 43.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000192/0.2454, allocations: 223.5 kB / 379.8 MB, free: 42.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.896e-05/0.2454, allocations: 19.84 kB / 379.8 MB, free: 42.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.58e-05/0.2455, allocations: 29.98 kB / 379.9 MB, free: 42.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004428/0.2459, allocations: 240.1 kB / 380.1 MB, free: 42.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.246, allocations: 4.125 kB / 380.1 MB, free: 42.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.556e-05/0.246, allocations: 14.09 kB / 380.1 MB, free: 42.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.246, allocations: 6.625 kB / 380.1 MB, free: 42.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002922/0.2463, allocations: 153.3 kB / 380.3 MB, free: 42.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008173/0.2471, allocations: 0.7088 MB / 381 MB, free: 42.01 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002868/0.2474, allocations: 174.1 kB / 381.2 MB, free: 41.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.2476, allocations: 76.25 kB / 381.2 MB, free: 41.87 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.2476, allocations: 6.172 kB / 381.2 MB, free: 41.86 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002176/0.2478, allocations: 122.5 kB / 381.4 MB, free: 41.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.124e-06/0.2478, allocations: 0 / 381.4 MB, free: 41.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004108/0.2483, allocations: 217.6 kB / 381.6 MB, free: 41.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.2483, allocations: 55.47 kB / 381.6 MB, free: 41.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.427e-05/0.2484, allocations: 144.4 kB / 381.8 MB, free: 41.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.466e-05/0.2484, allocations: 38.61 kB / 381.8 MB, free: 41.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.549e-05/0.2485, allocations: 129.9 kB / 381.9 MB, free: 41.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.993e-05/0.2486, allocations: 63.66 kB / 382 MB, free: 41.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.118e-05/0.2486, allocations: 4.969 kB / 382 MB, free: 41.24 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.512e-05/0.2487, allocations: 334.4 kB / 382.3 MB, free: 40.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.2488, allocations: 62.56 kB / 382.4 MB, free: 40.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.2489, allocations: 126.8 kB / 382.5 MB, free: 40.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002286/0.2491, allocations: 173.6 kB / 382.7 MB, free: 40.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.2492, allocations: 0 / 382.7 MB, free: 40.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003421/0.2495, allocations: 244.9 kB / 382.9 MB, free: 40.51 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.2495, allocations: 5.688 kB / 382.9 MB, free: 40.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.2495, allocations: 1.25 kB / 382.9 MB, free: 40.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.361e-05/0.2496, allocations: 4.562 kB / 382.9 MB, free: 40.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.2497, allocations: 34.77 kB / 383 MB, free: 40.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.2497, allocations: 11.52 kB / 383 MB, free: 40.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.799e-05/0.2499, allocations: 25.72 kB / 383 MB, free: 40.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.983e-05/0.2499, allocations: 13.12 kB / 383 MB, free: 40.47 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,$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,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,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.0001141/0.25, allocations: 163.4 kB / 383.2 MB, free: 40.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.92e-05/0.25, allocations: 13.47 kB / 383.2 MB, free: 40.31 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003369/0.2504, allocations: 196.5 kB / 383.4 MB, free: 40.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.2504, allocations: 6.828 kB / 383.4 MB, free: 40.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.2504, allocations: 0.8438 kB / 383.4 MB, free: 40.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.2504, allocations: 0 / 383.4 MB, free: 40.2 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006411/0.2511, allocations: 0.5677 MB / 384 MB, free: 39.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.2511, allocations: 0 / 384 MB, free: 39.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.763e-05/0.2512, allocations: 21.38 kB / 384 MB, free: 39.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.2512, allocations: 5.016 kB / 384 MB, free: 39.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.2512, allocations: 9.031 kB / 384 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.2512, allocations: 1 kB / 384 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.2512, allocations: 4.969 kB / 384 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002706/0.2515, allocations: 274.6 kB / 384.3 MB, free: 39.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.604e-05/0.2515, allocations: 85.48 kB / 384.4 MB, free: 39.4 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.614e-05/0.2516, allocations: 6.344 kB / 384.4 MB, free: 39.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.503e-05/0.2516, allocations: 17.48 kB / 384.4 MB, free: 39.38 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.659e-05/0.2517, allocations: 26.31 kB / 384.4 MB, free: 39.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.2518, allocations: 5.656 kB / 384.4 MB, free: 39.37 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.346e-05/0.2518, allocations: 96.42 kB / 384.5 MB, free: 39.28 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2518, allocations: 5.094 kB / 384.5 MB, free: 39.28 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002801/0.2521, allocations: 49 kB / 384.6 MB, free: 39.26 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.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,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.000139/0.2522, allocations: 111.5 kB / 384.7 MB, free: 39.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003228/0.2526, allocations: 186 kB / 384.8 MB, free: 39.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2526, allocations: 0 / 384.8 MB, free: 39.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.2527, allocations: 81.98 kB / 384.9 MB, free: 39.06 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.253, allocations: 25.27 kB / 384.9 MB, free: 39.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006501/0.2537, allocations: 398 kB / 385.3 MB, free: 38.74 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002046/0.2539, allocations: 0.7324 MB / 386.1 MB, free: 38.02 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.465e-05/0.254, allocations: 26.81 kB / 386.1 MB, free: 38 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.114e-05/0.2541, allocations: 20.31 kB / 386.1 MB, free: 38 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.2541, allocations: 0 / 386.1 MB, free: 38 MB / 298.7 MB Notification: Performance of Templates: time 0.00491/0.259, allocations: 1.729 MB / 387.8 MB, free: 36.79 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches