Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/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_cpp_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_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001158/0.001158, allocations: 180.1 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.426/1.426, allocations: 205.4 MB / 222.5 MB, free: 9.098 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007251/0.0007252, allocations: 95.67 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003224/0.0003225, allocations: 12 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1985/0.1989, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001499/0.2004, allocations: 1.394 MB / 375.9 MB, free: 44.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005102/0.201, allocations: 271.6 kB / 376.2 MB, free: 44.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001032/0.2011, allocations: 8.406 kB / 376.2 MB, free: 44.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.389e-05/0.2012, allocations: 23.3 kB / 376.2 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.648e-05/0.2012, allocations: 9.062 kB / 376.2 MB, free: 44.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002843/0.2015, allocations: 93.94 kB / 376.3 MB, free: 44.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002269/0.2018, allocations: 235.9 kB / 376.6 MB, free: 43.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002241/0.202, allocations: 156.7 kB / 376.7 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.096e-05/0.2021, allocations: 64.08 kB / 376.8 MB, free: 43.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.59e-05/0.2022, allocations: 77.33 kB / 376.9 MB, free: 43.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.982e-05/0.2022, allocations: 10.12 kB / 376.9 MB, free: 43.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.537e-05/0.2023, allocations: 21.48 kB / 376.9 MB, free: 43.67 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.351e-05/0.2023, allocations: 37.97 kB / 376.9 MB, free: 43.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.445e-05/0.2024, allocations: 61.36 kB / 377 MB, free: 43.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001572/0.2026, allocations: 153.7 kB / 377.1 MB, free: 43.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.2026, allocations: 0 / 377.1 MB, free: 43.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2026, allocations: 1.125 kB / 377.1 MB, free: 43.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.2026, allocations: 0 / 377.1 MB, free: 43.47 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.0005046/0.2031, allocations: 448.4 kB / 377.6 MB, free: 43.03 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.2032, allocations: 9.25 kB / 377.6 MB, free: 43.03 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.828e-05/0.2032, allocations: 23.88 kB / 377.6 MB, free: 43.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002009/0.2034, allocations: 238.1 kB / 377.8 MB, free: 42.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.091e-05/0.2035, allocations: 20.44 kB / 377.9 MB, free: 42.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.973e-05/0.2035, allocations: 26.47 kB / 377.9 MB, free: 42.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004089/0.2039, allocations: 272.6 kB / 378.1 MB, free: 42.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.204, allocations: 5.031 kB / 378.1 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.309e-05/0.204, allocations: 10.31 kB / 378.2 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.204, allocations: 6.188 kB / 378.2 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000279/0.2043, allocations: 163.6 kB / 378.3 MB, free: 42.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008992/0.2052, allocations: 0.9693 MB / 379.3 MB, free: 41.56 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002437/0.2055, allocations: 147.8 kB / 379.4 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.2056, allocations: 77.77 kB / 379.5 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.2056, allocations: 6.422 kB / 379.5 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001895/0.2058, allocations: 115.7 kB / 379.6 MB, free: 41.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.2058, allocations: 0 / 379.6 MB, free: 41.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003773/0.2062, allocations: 210.1 kB / 379.8 MB, free: 41.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.798e-05/0.2062, allocations: 55.5 kB / 379.9 MB, free: 41.17 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.041e-05/0.2063, allocations: 155.2 kB / 380 MB, free: 41.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.378e-05/0.2063, allocations: 42.14 kB / 380.1 MB, free: 40.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.828e-05/0.2064, allocations: 146.1 kB / 380.2 MB, free: 40.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.503e-05/0.2065, allocations: 56.22 kB / 380.3 MB, free: 40.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.021e-05/0.2065, allocations: 5.719 kB / 380.3 MB, free: 40.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.438e-05/0.2066, allocations: 326.4 kB / 380.6 MB, free: 40.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.2067, allocations: 64.8 kB / 380.7 MB, free: 40.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.2068, allocations: 145.3 kB / 380.8 MB, free: 40.31 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001191/0.207, allocations: 76.16 kB / 380.9 MB, free: 40.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.207, allocations: 1.188 kB / 380.9 MB, free: 40.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003385/0.2073, allocations: 239.6 kB / 381.1 MB, free: 40.15 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.2073, allocations: 6.375 kB / 381.1 MB, free: 40.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.2073, allocations: 2.219 kB / 381.1 MB, free: 40.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.2074, allocations: 12.2 kB / 381.1 MB, free: 40.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.2075, allocations: 39.06 kB / 381.2 MB, free: 40.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.2075, allocations: 10.81 kB / 381.2 MB, free: 40.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.2076, allocations: 25.62 kB / 381.2 MB, free: 40.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.93e-05/0.2077, allocations: 18.33 kB / 381.2 MB, free: 40.09 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001153/0.2078, allocations: 153.1 kB / 381.4 MB, free: 39.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.15e-05/0.2078, allocations: 14.22 kB / 381.4 MB, free: 39.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002965/0.2081, allocations: 196.5 kB / 381.6 MB, free: 39.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.2082, allocations: 10.23 kB / 381.6 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2082, allocations: 1.438 kB / 381.6 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.2082, allocations: 0 / 381.6 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005821/0.2088, allocations: 0.5864 MB / 382.2 MB, free: 39.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.2088, allocations: 7.938 kB / 382.2 MB, free: 39.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.114e-05/0.2089, allocations: 16.31 kB / 382.2 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.2089, allocations: 1.438 kB / 382.2 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.2089, allocations: 13.73 kB / 382.2 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.2089, allocations: 0 / 382.2 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2089, allocations: 0 / 382.2 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002462/0.2091, allocations: 265.2 kB / 382.5 MB, free: 39.1 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.616e-05/0.2092, allocations: 97.62 kB / 382.6 MB, free: 38.99 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.278e-05/0.2092, allocations: 5.219 kB / 382.6 MB, free: 38.99 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.99e-05/0.2093, allocations: 3.844 kB / 382.6 MB, free: 38.99 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.208e-05/0.2094, allocations: 25.33 kB / 382.6 MB, free: 38.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.2094, allocations: 9.844 kB / 382.6 MB, free: 38.97 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.902e-05/0.2094, allocations: 105.6 kB / 382.7 MB, free: 38.88 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2094, allocations: 0 / 382.7 MB, free: 38.88 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002982/0.2097, allocations: 50.91 kB / 382.8 MB, free: 38.86 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000128/0.2099, allocations: 105.6 kB / 382.9 MB, free: 38.77 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00028/0.2102, allocations: 181.5 kB / 383.1 MB, free: 38.7 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.2102, allocations: 4.188 kB / 383.1 MB, free: 38.69 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001151/0.2103, allocations: 75.83 kB / 383.1 MB, free: 38.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.2106, allocations: 24.23 kB / 383.2 MB, free: 38.65 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005194/0.2111, allocations: 421.3 kB / 383.6 MB, free: 38.31 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001446/0.2113, allocations: 0.7388 MB / 384.3 MB, free: 37.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.477e-05/0.2114, allocations: 20.94 kB / 384.3 MB, free: 37.58 MB / 298.7 MB Notification: Performance of SimCode: time 4.21e-07/0.2114, allocations: 1.438 kB / 384.3 MB, free: 37.58 MB / 298.7 MB Notification: Performance of Templates: time 0.003652/0.215, allocations: 2.359 MB / 386.7 MB, free: 36.23 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches