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 0.9404/0.9404, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002519/0.000252, allocations: 7.984 kB / 158.3 MB, free: 15.2 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04419/0.04446, allocations: 25.17 MB / 183.5 MB, free: 5.992 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1704/0.2149, allocations: 33.84 MB / 217.3 MB, free: 6.688 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001726/0.2151, allocations: 63.16 kB / 217.4 MB, free: 6.68 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009202/0.2243, allocations: 2.919 MB / 220.3 MB, free: 5.34 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.71e-06/0.2244, allocations: 0 / 220.3 MB, free: 5.34 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.42e-05/0.2244, allocations: 8.5 kB / 220.3 MB, free: 5.34 MB / 170.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.0004819/0.2249, allocations: 438 kB / 220.8 MB, free: 4.93 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.2249, allocations: 7.344 kB / 220.8 MB, free: 4.93 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.166e-05/0.225, allocations: 26.83 kB / 220.8 MB, free: 4.914 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002235/0.2252, allocations: 222 kB / 221 MB, free: 4.695 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.612e-05/0.2253, allocations: 25.53 kB / 221 MB, free: 4.691 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.459e-05/0.2253, allocations: 28.66 kB / 221.1 MB, free: 4.691 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000456/0.2258, allocations: 266.5 kB / 221.3 MB, free: 4.562 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.2258, allocations: 0 / 221.3 MB, free: 4.562 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.764e-05/0.2259, allocations: 5.75 kB / 221.3 MB, free: 4.562 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.2259, allocations: 11.64 kB / 221.3 MB, free: 4.559 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003675/0.2263, allocations: 169.7 kB / 221.5 MB, free: 4.527 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.2273, allocations: 0.9463 MB / 222.4 MB, free: 3.766 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00031/0.2276, allocations: 151.6 kB / 222.6 MB, free: 3.727 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.2277, allocations: 4.188 kB / 222.6 MB, free: 3.723 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001958/0.2279, allocations: 111.7 kB / 222.7 MB, free: 3.656 MB / 170.7 MB Notification: Performance of pre-optimization done (n=23): time 2.97e-06/0.2279, allocations: 0 / 222.7 MB, free: 3.656 MB / 170.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004728/0.2284, allocations: 213.1 kB / 222.9 MB, free: 3.59 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.892e-05/0.2284, allocations: 60.44 kB / 223 MB, free: 3.527 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.2285, allocations: 140.6 kB / 223.1 MB, free: 3.418 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.362e-05/0.2286, allocations: 39.73 kB / 223.1 MB, free: 3.387 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.811e-05/0.2287, allocations: 202.7 kB / 223.3 MB, free: 3.207 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.609e-05/0.2287, allocations: 59.92 kB / 223.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.773e-05/0.2288, allocations: 8.469 kB / 223.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.296e-05/0.2288, allocations: 328.5 kB / 223.7 MB, free: 2.848 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.229, allocations: 64.19 kB / 223.8 MB, free: 2.836 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001742/0.2292, allocations: 138 kB / 223.9 MB, free: 2.738 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001565/0.2294, allocations: 64.77 kB / 224 MB, free: 2.734 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.292e-06/0.2294, allocations: 0 / 224 MB, free: 2.734 MB / 170.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004417/0.2298, allocations: 241.5 kB / 224.2 MB, free: 2.664 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.2299, allocations: 7.562 kB / 224.2 MB, free: 2.664 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.824e-06/0.2299, allocations: 3.938 kB / 224.2 MB, free: 2.66 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.2299, allocations: 7.891 kB / 224.2 MB, free: 2.656 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.2301, allocations: 38.33 kB / 224.3 MB, free: 2.645 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.993e-06/0.2301, allocations: 7.797 kB / 224.3 MB, free: 2.641 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001368/0.2302, allocations: 23.44 kB / 224.3 MB, free: 2.629 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.481e-05/0.2303, allocations: 18.8 kB / 224.3 MB, free: 2.625 MB / 170.7 MB Warning: Assuming fixed start value for the following 1 variables: transition1.t_start:DISCRETE(unit = "s" fixed = true 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 () * 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.0001925/0.2305, allocations: 160.1 kB / 224.5 MB, free: 2.496 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.861e-05/0.2305, allocations: 11.47 kB / 224.5 MB, free: 2.488 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003802/0.2309, allocations: 196.9 kB / 224.7 MB, free: 2.422 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.2309, allocations: 3.875 kB / 224.7 MB, free: 2.422 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.385e-06/0.231, allocations: 0 / 224.7 MB, free: 2.422 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.406e-06/0.231, allocations: 4 kB / 224.7 MB, free: 2.418 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008116/0.2318, allocations: 0.5837 MB / 225.3 MB, free: 2.008 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.519e-06/0.2318, allocations: 0 / 225.3 MB, free: 2.008 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.667e-05/0.2319, allocations: 17.66 kB / 225.3 MB, free: 2.004 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.703e-06/0.2319, allocations: 0 / 225.3 MB, free: 2.004 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.232, allocations: 6.484 kB / 225.3 MB, free: 2 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.232, allocations: 3.875 kB / 225.3 MB, free: 2 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.232, allocations: 4 kB / 225.3 MB, free: 1.996 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003504/0.2323, allocations: 279.5 kB / 225.6 MB, free: 1.828 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.04e-05/0.2324, allocations: 88.67 kB / 225.7 MB, free: 1.727 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.315e-05/0.2324, allocations: 6.938 kB / 225.7 MB, free: 1.727 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.2326, allocations: 6.719 kB / 225.7 MB, free: 1.727 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.737e-05/0.2327, allocations: 26.67 kB / 225.7 MB, free: 1.715 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.2327, allocations: 3.562 kB / 225.7 MB, free: 1.715 MB / 170.7 MB Notification: Performance of sorting global known variables: time 5.38e-05/0.2328, allocations: 102.2 kB / 225.8 MB, free: 1.633 MB / 170.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.2328, allocations: 0 / 225.8 MB, free: 1.633 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004185/0.2332, allocations: 42.73 kB / 225.9 MB, free: 1.629 MB / 170.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) * 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.0001411/0.2334, allocations: 121.9 kB / 226 MB, free: 1.527 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0003576/0.2337, allocations: 172.9 kB / 226.1 MB, free: 1.5 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.476e-06/0.2337, allocations: 0.5625 kB / 226.1 MB, free: 1.5 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001457/0.2339, allocations: 86.38 kB / 226.2 MB, free: 1.48 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002304/0.2341, allocations: 18.59 kB / 226.3 MB, free: 1.477 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006528/0.2348, allocations: 417.8 kB / 226.7 MB, free: 1.176 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001783/0.235, allocations: 0.7375 MB / 227.4 MB, free: 460 kB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.542e-05/0.2351, allocations: 26.77 kB / 227.4 MB, free: 448 kB / 170.7 MB Notification: Performance of SimCode: time 1.446e-06/0.2351, allocations: 0 / 227.4 MB, free: 448 kB / 170.7 MB Notification: Performance of Templates: time 0.004654/0.2398, allocations: 2.305 MB / 229.7 MB, free: 15.3 MB / 186.7 MB