Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 1.029/1.029, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.193e-05/2.206e-05, allocations: 7.984 kB / 154.3 MB, free: 13.15 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1366, allocations: 25.14 MB / 179.4 MB, free: 0.8203 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05208/0.1887, allocations: 33.77 MB / 213.2 MB, free: 15.36 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001911/0.1889, allocations: 55.98 kB / 213.2 MB, free: 15.31 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01076/0.1997, allocations: 2.908 MB / 216.1 MB, free: 12.39 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.093e-06/0.1997, allocations: 0 / 216.1 MB, free: 12.39 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.727e-05/0.1998, allocations: 8.875 kB / 216.2 MB, free: 12.38 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0006226/0.2004, allocations: 435.1 kB / 216.6 MB, free: 11.91 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.2005, allocations: 8.031 kB / 216.6 MB, free: 11.9 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.381e-05/0.2005, allocations: 27.67 kB / 216.6 MB, free: 11.88 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003203/0.2009, allocations: 226.7 kB / 216.8 MB, free: 11.61 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.128e-05/0.2009, allocations: 20.56 kB / 216.9 MB, free: 11.59 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.491e-05/0.201, allocations: 24 kB / 216.9 MB, free: 11.57 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005861/0.2016, allocations: 262.1 kB / 217.1 MB, free: 11.29 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.2016, allocations: 0 / 217.1 MB, free: 11.29 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.228e-05/0.2017, allocations: 7.984 kB / 217.1 MB, free: 11.28 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.494e-05/0.2017, allocations: 11.95 kB / 217.2 MB, free: 11.27 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004148/0.2021, allocations: 165.6 kB / 217.3 MB, free: 11.11 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.2036, allocations: 0.9368 MB / 218.3 MB, free: 10.1 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003538/0.204, allocations: 147.2 kB / 218.4 MB, free: 9.945 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/0.2041, allocations: 73.31 kB / 218.5 MB, free: 9.871 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.583e-05/0.2042, allocations: 4.188 kB / 218.5 MB, free: 9.867 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002448/0.2044, allocations: 123.9 kB / 218.6 MB, free: 9.734 MB / 186.7 MB Notification: Performance of pre-optimization done (n=23): time 3.401e-06/0.2045, allocations: 0 / 218.6 MB, free: 9.734 MB / 186.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004082/0.2049, allocations: 157.1 kB / 218.7 MB, free: 9.578 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.2049, allocations: 55.41 kB / 218.8 MB, free: 9.512 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/0.2051, allocations: 142.6 kB / 218.9 MB, free: 9.367 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.632e-05/0.2052, allocations: 37.64 kB / 219 MB, free: 9.324 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.2053, allocations: 214.6 kB / 219.2 MB, free: 9.109 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.967e-05/0.2054, allocations: 59.34 kB / 219.2 MB, free: 9.051 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.607e-05/0.2055, allocations: 4 kB / 219.2 MB, free: 9.047 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.2057, allocations: 330.8 kB / 219.6 MB, free: 8.715 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001587/0.2058, allocations: 52.66 kB / 219.6 MB, free: 8.66 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002283/0.2061, allocations: 136.2 kB / 219.8 MB, free: 8.5 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001771/0.2063, allocations: 67.95 kB / 219.8 MB, free: 8.434 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.442e-06/0.2063, allocations: 0 / 219.8 MB, free: 8.434 MB / 186.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000542/0.2068, allocations: 249.2 kB / 220.1 MB, free: 8.184 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.2069, allocations: 4 kB / 220.1 MB, free: 8.18 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.2069, allocations: 4 kB / 220.1 MB, free: 8.176 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.2069, allocations: 4 kB / 220.1 MB, free: 8.172 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001801/0.2071, allocations: 31.92 kB / 220.1 MB, free: 8.141 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/0.2071, allocations: 4 kB / 220.1 MB, free: 8.137 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.2073, allocations: 28.11 kB / 220.1 MB, free: 8.109 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.456e-05/0.2074, allocations: 16 kB / 220.2 MB, free: 8.094 MB / 186.7 MB Warning: Assuming fixed start value for the following 1 variables: transition1.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real 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,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,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.enableFire,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete 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.0001839/0.2076, allocations: 135.9 kB / 220.3 MB, free: 7.957 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.389e-05/0.2076, allocations: 15.91 kB / 220.3 MB, free: 7.941 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004422/0.208, allocations: 186.3 kB / 220.5 MB, free: 7.75 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.2081, allocations: 0 / 220.5 MB, free: 7.75 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.642e-06/0.2081, allocations: 0 / 220.5 MB, free: 7.75 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.429e-06/0.2081, allocations: 7.984 kB / 220.5 MB, free: 7.742 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.2091, allocations: 0.5758 MB / 221.1 MB, free: 7.105 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.062e-06/0.2092, allocations: 4 kB / 221.1 MB, free: 7.102 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.2093, allocations: 15.92 kB / 221.1 MB, free: 7.086 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.235e-05/0.2093, allocations: 4 kB / 221.1 MB, free: 7.082 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.2094, allocations: 7.938 kB / 221.1 MB, free: 7.074 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.504e-06/0.2094, allocations: 0 / 221.1 MB, free: 7.074 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.247e-06/0.2094, allocations: 4 kB / 221.1 MB, free: 7.07 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004191/0.2098, allocations: 271.7 kB / 221.4 MB, free: 6.789 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.655e-05/0.2099, allocations: 92.92 kB / 221.5 MB, free: 6.68 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.085e-05/0.2099, allocations: 0 / 221.5 MB, free: 6.68 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.2101, allocations: 11.98 kB / 221.5 MB, free: 6.668 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.041e-05/0.2102, allocations: 23.97 kB / 221.5 MB, free: 6.645 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/0.2102, allocations: 4 kB / 221.5 MB, free: 6.641 MB / 186.7 MB Notification: Performance of sorting global known variables: time 9.05e-05/0.2103, allocations: 108.8 kB / 221.6 MB, free: 6.535 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.27e-07/0.2103, allocations: 7.875 kB / 221.6 MB, free: 6.527 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004275/0.2108, allocations: 40 kB / 221.7 MB, free: 6.488 MB / 186.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.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * 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.0001752/0.211, allocations: 107 kB / 221.8 MB, free: 6.375 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004218/0.2114, allocations: 180 kB / 221.9 MB, free: 6.199 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.2114, allocations: 0.5625 kB / 221.9 MB, free: 6.199 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001729/0.2116, allocations: 83.92 kB / 222 MB, free: 6.117 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002472/0.2119, allocations: 18.91 kB / 222 MB, free: 6.102 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006322/0.2125, allocations: 252.8 kB / 222.3 MB, free: 5.832 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004519/0.213, allocations: 0.7442 MB / 223 MB, free: 5.059 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.212e-05/0.2131, allocations: 27.42 kB / 223.1 MB, free: 5.031 MB / 186.7 MB Notification: Performance of SimCode: time 1.64e-06/0.2131, allocations: 0 / 223.1 MB, free: 5.031 MB / 186.7 MB Notification: Performance of Templates: time 0.005283/0.2184, allocations: 2.305 MB / 225.4 MB, free: 2.727 MB / 186.7 MB