Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_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_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001434/0.001434, allocations: 177.5 kB / 16.41 MB, free: 5.707 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.408/1.408, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0007711/0.0007711, allocations: 88.94 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003016/0.0003017, allocations: 8 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1992/0.1995, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001446/0.201, allocations: 1.368 MB / 375.9 MB, free: 44.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004902/0.2015, allocations: 276.1 kB / 376.2 MB, free: 44.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.003e-05/0.2016, allocations: 7.406 kB / 376.2 MB, free: 44.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.28e-05/0.2017, allocations: 19.08 kB / 376.2 MB, free: 44.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.019e-05/0.2018, allocations: 13.17 kB / 376.2 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002783/0.2021, allocations: 94.48 kB / 376.3 MB, free: 44.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002407/0.2023, allocations: 232.6 kB / 376.5 MB, free: 43.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002339/0.2026, allocations: 154.7 kB / 376.7 MB, free: 43.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.15e-05/0.2027, allocations: 68.08 kB / 376.8 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.053e-05/0.2028, allocations: 81.78 kB / 376.8 MB, free: 43.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.69e-05/0.2028, allocations: 9.469 kB / 376.8 MB, free: 43.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.046e-05/0.2029, allocations: 13.16 kB / 376.9 MB, free: 43.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.175e-05/0.2029, allocations: 42.28 kB / 376.9 MB, free: 43.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.308e-05/0.203, allocations: 62.36 kB / 377 MB, free: 43.6 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001504/0.2031, allocations: 157.6 kB / 377.1 MB, free: 43.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2031, allocations: 3.938 kB / 377.1 MB, free: 43.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2031, allocations: 0 / 377.1 MB, free: 43.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.2031, allocations: 1.125 kB / 377.1 MB, free: 43.48 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.0005165/0.2037, allocations: 447.9 kB / 377.6 MB, free: 43.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.2037, allocations: 8.438 kB / 377.6 MB, free: 43.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.18e-05/0.2038, allocations: 28.11 kB / 377.6 MB, free: 43.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001827/0.204, allocations: 238.4 kB / 377.8 MB, free: 42.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.61e-05/0.204, allocations: 19.78 kB / 377.8 MB, free: 42.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.007e-05/0.2041, allocations: 34.7 kB / 377.9 MB, free: 42.74 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003924/0.2044, allocations: 265.1 kB / 378.1 MB, free: 42.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.2045, allocations: 3.938 kB / 378.1 MB, free: 42.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.221e-05/0.2045, allocations: 11.16 kB / 378.1 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.2045, allocations: 9.844 kB / 378.2 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002691/0.2048, allocations: 164.6 kB / 378.3 MB, free: 42.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008912/0.2057, allocations: 0.9675 MB / 379.3 MB, free: 41.56 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002382/0.2059, allocations: 151.2 kB / 379.4 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.206, allocations: 81.58 kB / 379.5 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.2061, allocations: 6.391 kB / 379.5 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002006/0.2063, allocations: 115.3 kB / 379.6 MB, free: 41.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.683e-06/0.2063, allocations: 0 / 379.6 MB, free: 41.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003738/0.2067, allocations: 203.3 kB / 379.8 MB, free: 41.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.983e-05/0.2067, allocations: 63.73 kB / 379.9 MB, free: 41.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.351e-05/0.2068, allocations: 156.3 kB / 380 MB, free: 41.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/0.2068, allocations: 38.05 kB / 380.1 MB, free: 40.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.924e-05/0.2069, allocations: 142.5 kB / 380.2 MB, free: 40.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.548e-05/0.2069, allocations: 63.95 kB / 380.3 MB, free: 40.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.057e-05/0.207, allocations: 6.781 kB / 380.3 MB, free: 40.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.153e-05/0.207, allocations: 326 kB / 380.6 MB, free: 40.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.2071, allocations: 61.22 kB / 380.7 MB, free: 40.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001584/0.2073, allocations: 137.3 kB / 380.8 MB, free: 40.31 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001205/0.2074, allocations: 79.94 kB / 380.9 MB, free: 40.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.2074, allocations: 0 / 380.9 MB, free: 40.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003325/0.2078, allocations: 249.8 kB / 381.1 MB, free: 40.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.2078, allocations: 13.2 kB / 381.1 MB, free: 40.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.2078, allocations: 2.625 kB / 381.1 MB, free: 40.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.2078, allocations: 4.656 kB / 381.1 MB, free: 40.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.208, allocations: 33.36 kB / 381.2 MB, free: 40.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.208, allocations: 7.844 kB / 381.2 MB, free: 40.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.2081, allocations: 33.64 kB / 381.2 MB, free: 40.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.866e-05/0.2081, allocations: 11.03 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.0001097/0.2083, allocations: 153.6 kB / 381.4 MB, free: 39.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.329e-05/0.2083, allocations: 18.05 kB / 381.4 MB, free: 39.94 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002975/0.2086, allocations: 196.5 kB / 381.6 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.2086, allocations: 2.25 kB / 381.6 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2086, allocations: 5.188 kB / 381.6 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.2086, allocations: 0 / 381.6 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005925/0.2092, allocations: 0.5913 MB / 382.2 MB, free: 39.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.2092, allocations: 0 / 382.2 MB, free: 39.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.347e-05/0.2093, allocations: 23.97 kB / 382.2 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.2093, allocations: 5.25 kB / 382.2 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.2093, allocations: 5.125 kB / 382.2 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.2093, allocations: 1.25 kB / 382.2 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2094, allocations: 0 / 382.2 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002424/0.2096, allocations: 269 kB / 382.5 MB, free: 39.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.56e-05/0.2096, allocations: 97.44 kB / 382.6 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.357e-05/0.2097, allocations: 6.188 kB / 382.6 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.528e-05/0.2098, allocations: 7.891 kB / 382.6 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.259e-05/0.2098, allocations: 26.38 kB / 382.6 MB, free: 38.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.2098, allocations: 4.438 kB / 382.6 MB, free: 38.96 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.186e-05/0.2099, allocations: 107.1 kB / 382.7 MB, free: 38.87 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2099, allocations: 0 / 382.7 MB, free: 38.87 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000282/0.2102, allocations: 50.88 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,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 (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.0001233/0.2103, allocations: 105.8 kB / 382.9 MB, free: 38.76 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002983/0.2106, allocations: 181.2 kB / 383.1 MB, free: 38.69 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.2106, allocations: 4.906 kB / 383.1 MB, free: 38.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.2108, allocations: 75.72 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.0002613/0.211, allocations: 27.84 kB / 383.2 MB, free: 38.64 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005497/0.2116, allocations: 421.9 kB / 383.6 MB, free: 38.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001407/0.2117, allocations: 0.7362 MB / 384.3 MB, free: 37.58 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.488e-05/0.2118, allocations: 28.55 kB / 384.3 MB, free: 37.57 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2118, allocations: 0 / 384.3 MB, free: 37.57 MB / 298.7 MB Notification: Performance of Templates: time 0.003695/0.2155, allocations: 2.371 MB / 386.7 MB, free: 36.2 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches