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_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001129/0.001129, allocations: 179.2 kB / 17.36 MB, free: 4.445 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.365/1.365, allocations: 205.6 MB / 223.7 MB, free: 8.953 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.000764/0.0007639, allocations: 74.44 kB / 272.1 MB, free: 8.129 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002555/0.0002556, allocations: 8 kB / 329 MB, free: 15.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.243, allocations: 47.58 MB / 376.6 MB, free: 45.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001531/0.2446, allocations: 1.378 MB / 378 MB, free: 44.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005929/0.2452, allocations: 363 kB / 378.3 MB, free: 44.15 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.204e-05/0.2453, allocations: 3.375 kB / 378.3 MB, free: 44.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.457e-05/0.2454, allocations: 11.19 kB / 378.3 MB, free: 44.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.752e-05/0.2455, allocations: 12.86 kB / 378.4 MB, free: 44.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003133/0.2458, allocations: 99 kB / 378.4 MB, free: 44.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002634/0.2461, allocations: 254.1 kB / 378.7 MB, free: 43.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002662/0.2463, allocations: 170.2 kB / 378.9 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.456e-05/0.2464, allocations: 72.39 kB / 378.9 MB, free: 43.76 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.2465, allocations: 73.67 kB / 379 MB, free: 43.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.054e-05/0.2466, allocations: 10.25 kB / 379 MB, free: 43.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.996e-05/0.2467, allocations: 24.39 kB / 379 MB, free: 43.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.91e-05/0.2467, allocations: 38.09 kB / 379.1 MB, free: 43.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.205e-05/0.2468, allocations: 113.4 kB / 379.2 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002176/0.247, allocations: 211.9 kB / 379.4 MB, free: 43.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.247, allocations: 0 / 379.4 MB, free: 43.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2471, allocations: 4 kB / 379.4 MB, free: 43.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.2471, allocations: 1.156 kB / 379.4 MB, free: 43.4 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.0005142/0.2476, allocations: 441.7 kB / 379.8 MB, free: 42.97 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.2476, allocations: 9.844 kB / 379.8 MB, free: 42.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.553e-05/0.2477, allocations: 24.47 kB / 379.9 MB, free: 42.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001957/0.2479, allocations: 235.2 kB / 380.1 MB, free: 42.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.982e-05/0.2479, allocations: 20.81 kB / 380.1 MB, free: 42.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.456e-05/0.248, allocations: 30.78 kB / 380.1 MB, free: 42.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003999/0.2484, allocations: 265.7 kB / 380.4 MB, free: 42.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.2484, allocations: 5.5 kB / 380.4 MB, free: 42.49 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.293e-05/0.2485, allocations: 10.41 kB / 380.4 MB, free: 42.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.2485, allocations: 13.77 kB / 380.4 MB, free: 42.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002737/0.2488, allocations: 160 kB / 380.6 MB, free: 42.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008869/0.2496, allocations: 0.9786 MB / 381.6 MB, free: 41.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002412/0.2499, allocations: 147.2 kB / 381.7 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.25, allocations: 81.55 kB / 381.8 MB, free: 41.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.25, allocations: 6.656 kB / 381.8 MB, free: 41.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001939/0.2502, allocations: 109.7 kB / 381.9 MB, free: 41.28 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.553e-06/0.2502, allocations: 0 / 381.9 MB, free: 41.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003762/0.2506, allocations: 211.9 kB / 382.1 MB, free: 41.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.82e-05/0.2507, allocations: 58.84 kB / 382.2 MB, free: 41.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.033e-05/0.2508, allocations: 152.5 kB / 382.3 MB, free: 40.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.2508, allocations: 35.08 kB / 382.4 MB, free: 40.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.445e-05/0.2509, allocations: 150.5 kB / 382.5 MB, free: 40.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.798e-05/0.2509, allocations: 59.73 kB / 382.6 MB, free: 40.74 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.043e-05/0.2509, allocations: 6.188 kB / 382.6 MB, free: 40.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.845e-05/0.251, allocations: 326.7 kB / 382.9 MB, free: 40.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.2511, allocations: 64.09 kB / 382.9 MB, free: 40.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.2512, allocations: 149.3 kB / 383.1 MB, free: 40.24 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002119/0.2514, allocations: 188.5 kB / 383.3 MB, free: 40.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.2515, allocations: 0 / 383.3 MB, free: 40.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003177/0.2518, allocations: 249.4 kB / 383.5 MB, free: 39.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.2518, allocations: 6.812 kB / 383.5 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.2518, allocations: 5.688 kB / 383.5 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.2518, allocations: 4.156 kB / 383.5 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.252, allocations: 38.28 kB / 383.6 MB, free: 39.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.252, allocations: 4.281 kB / 383.6 MB, free: 39.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.328e-05/0.2521, allocations: 28.47 kB / 383.6 MB, free: 39.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.976e-05/0.2521, allocations: 14.88 kB / 383.6 MB, free: 39.92 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.0001083/0.2522, allocations: 158.2 kB / 383.8 MB, free: 39.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.924e-05/0.2523, allocations: 13.66 kB / 383.8 MB, free: 39.76 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003044/0.2526, allocations: 194.8 kB / 384 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.2526, allocations: 2.844 kB / 384 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.2526, allocations: 5.234 kB / 384 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.2526, allocations: 0 / 384 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005842/0.2532, allocations: 0.5909 MB / 384.6 MB, free: 39.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2532, allocations: 4 kB / 384.6 MB, free: 39.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.758e-05/0.2533, allocations: 15.44 kB / 384.6 MB, free: 39.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.2533, allocations: 1.062 kB / 384.6 MB, free: 39.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.2533, allocations: 12.95 kB / 384.6 MB, free: 39.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2533, allocations: 1.125 kB / 384.6 MB, free: 39.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2533, allocations: 1.031 kB / 384.6 MB, free: 39.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002466/0.2536, allocations: 272.1 kB / 384.9 MB, free: 38.92 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.628e-05/0.2536, allocations: 97.48 kB / 385 MB, free: 38.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.2537, allocations: 9.125 kB / 385 MB, free: 38.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.903e-05/0.2537, allocations: 8.625 kB / 385 MB, free: 38.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.285e-05/0.2538, allocations: 26.28 kB / 385 MB, free: 38.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.2538, allocations: 5 kB / 385 MB, free: 38.78 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.986e-05/0.2539, allocations: 98.62 kB / 385.1 MB, free: 38.7 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2539, allocations: 0 / 385.1 MB, free: 38.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002655/0.2541, allocations: 51.16 kB / 385.2 MB, free: 38.68 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,step.localActive,transition1.enableFire,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.0001228/0.2543, allocations: 122.6 kB / 385.3 MB, free: 38.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002878/0.2546, allocations: 178.4 kB / 385.5 MB, free: 38.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2546, allocations: 0 / 385.5 MB, free: 38.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.2547, allocations: 84.56 kB / 385.5 MB, free: 38.47 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002472/0.255, allocations: 26.05 kB / 385.6 MB, free: 38.45 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005736/0.2555, allocations: 421.6 kB / 386 MB, free: 38.13 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001678/0.2557, allocations: 0.737 MB / 386.7 MB, free: 37.41 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.996e-05/0.2558, allocations: 26.7 kB / 386.7 MB, free: 37.4 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.597e-05/0.2559, allocations: 25.05 kB / 386.8 MB, free: 37.39 MB / 298.7 MB Notification: Performance of SimCode: time 5.61e-07/0.2559, allocations: 0 / 386.8 MB, free: 37.39 MB / 298.7 MB Notification: Performance of Templates: time 0.004168/0.26, allocations: 1.713 MB / 388.5 MB, free: 36.11 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches