Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001562/0.001562, allocations: 102.1 kB / 18.39 MB, free: 4.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001796/0.001797, allocations: 184.2 kB / 19.33 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.368/1.368, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 55.92 kB / 329.2 MB, free: 3.336 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0745/0.07575, allocations: 46.61 MB / 375.8 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002624/0.07841, allocations: 1.664 MB / 377.4 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006192/0.07905, allocations: 259.2 kB / 377.7 MB, free: 2.684 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.07918, allocations: 7.938 kB / 377.7 MB, free: 2.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.07933, allocations: 27.73 kB / 377.7 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.253e-05/0.07939, allocations: 15.75 kB / 377.8 MB, free: 2.633 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003887/0.07978, allocations: 119.8 kB / 377.9 MB, free: 2.516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002994/0.08009, allocations: 271.5 kB / 378.1 MB, free: 2.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002979/0.0804, allocations: 190.8 kB / 378.3 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.748e-05/0.08051, allocations: 91.69 kB / 378.4 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001289/0.08064, allocations: 99.59 kB / 378.5 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.927e-05/0.08069, allocations: 24 kB / 378.5 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.509e-05/0.08077, allocations: 28 kB / 378.6 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.713e-05/0.08083, allocations: 59.77 kB / 378.6 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.52e-05/0.08093, allocations: 107.5 kB / 378.7 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002654/0.0812, allocations: 255 kB / 379 MB, free: 1.406 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.08122, allocations: 4 kB / 379 MB, free: 1.402 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.08122, allocations: 0 / 379 MB, free: 1.402 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.08124, allocations: 0 / 379 MB, free: 1.402 MB / 318.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.0005975/0.08184, allocations: 493.9 kB / 379.5 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.08188, allocations: 11.89 kB / 379.5 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.246e-05/0.08195, allocations: 28.73 kB / 379.5 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002608/0.08222, allocations: 235.9 kB / 379.7 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.328e-05/0.08226, allocations: 20.94 kB / 379.7 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.888e-05/0.08232, allocations: 36.36 kB / 379.8 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003984/0.08273, allocations: 266.6 kB / 380 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.08275, allocations: 192 / 380 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.984e-05/0.08279, allocations: 15.94 kB / 380.1 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.0828, allocations: 7.938 kB / 380.1 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002761/0.08308, allocations: 165.6 kB / 380.2 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1782/0.2613, allocations: 0.9644 MB / 381.2 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002715/0.2616, allocations: 154 kB / 381.3 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.2617, allocations: 72.91 kB / 381.4 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.2617, allocations: 5.312 kB / 381.4 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001804/0.2619, allocations: 123.3 kB / 381.5 MB, free: 12.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.405e-06/0.2619, allocations: 0 / 381.5 MB, free: 12.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004005/0.2623, allocations: 213.4 kB / 381.7 MB, free: 12.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.655e-05/0.2624, allocations: 58.19 kB / 381.8 MB, free: 12.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.2625, allocations: 155.1 kB / 382 MB, free: 12.21 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.2625, allocations: 38.7 kB / 382 MB, free: 12.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.333e-05/0.2626, allocations: 142.3 kB / 382.1 MB, free: 12.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.845e-05/0.2626, allocations: 61.53 kB / 382.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.195e-05/0.2627, allocations: 78.69 kB / 382.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.671e-05/0.2628, allocations: 325.5 kB / 382.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.2629, allocations: 63.2 kB / 382.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001424/0.2631, allocations: 142.7 kB / 382.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002144/0.2633, allocations: 187.7 kB / 383 MB, free: 11.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.2633, allocations: 3.938 kB / 383 MB, free: 11.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004014/0.2637, allocations: 258.8 kB / 383.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.2637, allocations: 6.812 kB / 383.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.2637, allocations: 3.406 kB / 383.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.2638, allocations: 5.531 kB / 383.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.2639, allocations: 30.48 kB / 383.3 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.2639, allocations: 4.344 kB / 383.3 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.2641, allocations: 25.67 kB / 383.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.786e-05/0.2641, allocations: 20.58 kB / 383.3 MB, free: 11.43 MB / 318.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: 30 ($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,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.0001195/0.2642, allocations: 162.1 kB / 383.5 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.527e-05/0.2643, allocations: 14.02 kB / 383.5 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003495/0.2646, allocations: 193.4 kB / 383.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.2646, allocations: 3.156 kB / 383.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2646, allocations: 288 / 383.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.2647, allocations: 7.531 kB / 383.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007055/0.2654, allocations: 0.5906 MB / 384.3 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.2654, allocations: 0 / 384.3 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.639e-05/0.2655, allocations: 18.5 kB / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.2655, allocations: 5.125 kB / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.2655, allocations: 5.922 kB / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.2655, allocations: 11.23 kB / 384.3 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2655, allocations: 1.156 kB / 384.3 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002638/0.2658, allocations: 272.9 kB / 384.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.836e-05/0.2658, allocations: 90.62 kB / 384.7 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.81e-05/0.2658, allocations: 8.891 kB / 384.7 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.966e-05/0.2659, allocations: 7.641 kB / 384.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.237e-05/0.266, allocations: 20.36 kB / 384.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.266, allocations: 5.766 kB / 384.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.418e-05/0.2661, allocations: 105.1 kB / 384.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2661, allocations: 0 / 384.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003417/0.2664, allocations: 52.83 kB / 384.9 MB, free: 10.33 MB / 318.1 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.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: 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.000121/0.2666, allocations: 114 kB / 385 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003278/0.2669, allocations: 189.5 kB / 385.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2669, allocations: 1 kB / 385.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001169/0.267, allocations: 79.25 kB / 385.3 MB, free: 10.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.2673, allocations: 24.95 kB / 385.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005489/0.2679, allocations: 366.2 kB / 385.6 MB, free: 9.867 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001635/0.2681, allocations: 0.7342 MB / 386.4 MB, free: 9.168 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.548e-05/0.2681, allocations: 26.83 kB / 386.4 MB, free: 9.156 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2681, allocations: 0 / 386.4 MB, free: 9.156 MB / 318.1 MB Notification: Performance of Templates: time 0.00528/0.2734, allocations: 2.464 MB / 388.9 MB, free: 8.906 MB / 318.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches