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_Variant2.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_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 0.976/0.976, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004617/0.0004619, allocations: 7.938 kB / 158.3 MB, free: 15.2 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04763/0.04813, allocations: 25.17 MB / 183.5 MB, free: 5.988 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1725/0.2207, allocations: 33.86 MB / 217.4 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001845/0.2209, allocations: 62.69 kB / 217.4 MB, free: 6.715 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009421/0.2304, allocations: 2.932 MB / 220.3 MB, free: 5.367 MB / 170.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.2304, allocations: 0 / 220.3 MB, free: 5.367 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.6e-05/0.2305, allocations: 8.219 kB / 220.4 MB, free: 5.367 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.000518/0.231, allocations: 452.1 kB / 220.8 MB, free: 4.953 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.231, allocations: 7.625 kB / 220.8 MB, free: 4.953 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.717e-05/0.2311, allocations: 31.3 kB / 220.8 MB, free: 4.934 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002275/0.2313, allocations: 212.5 kB / 221 MB, free: 4.719 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.718e-05/0.2314, allocations: 26.38 kB / 221.1 MB, free: 4.715 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.457e-05/0.2315, allocations: 25.59 kB / 221.1 MB, free: 4.715 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000463/0.2319, allocations: 265.1 kB / 221.4 MB, free: 4.59 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.232, allocations: 0 / 221.4 MB, free: 4.59 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.852e-05/0.232, allocations: 7.5 kB / 221.4 MB, free: 4.59 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.4e-06/0.232, allocations: 15.55 kB / 221.4 MB, free: 4.582 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003669/0.2324, allocations: 167.8 kB / 221.5 MB, free: 4.551 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/0.2335, allocations: 0.9437 MB / 222.5 MB, free: 3.793 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003116/0.2339, allocations: 157.8 kB / 222.6 MB, free: 3.746 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.2339, allocations: 7.562 kB / 222.6 MB, free: 3.746 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002055/0.2341, allocations: 122.1 kB / 222.8 MB, free: 3.672 MB / 170.7 MB Notification: Performance of pre-optimization done (n=23): time 2.827e-06/0.2341, allocations: 0 / 222.8 MB, free: 3.672 MB / 170.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004671/0.2346, allocations: 210 kB / 223 MB, free: 3.613 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.945e-05/0.2347, allocations: 55.19 kB / 223 MB, free: 3.551 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.2348, allocations: 144.5 kB / 223.2 MB, free: 3.438 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.044e-05/0.2348, allocations: 35.45 kB / 223.2 MB, free: 3.406 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.744e-05/0.2349, allocations: 204 kB / 223.4 MB, free: 3.227 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.057e-05/0.235, allocations: 63.94 kB / 223.5 MB, free: 3.191 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.51e-05/0.235, allocations: 6.938 kB / 223.5 MB, free: 3.191 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.932e-05/0.2351, allocations: 326 kB / 223.8 MB, free: 2.871 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001442/0.2352, allocations: 59.44 kB / 223.8 MB, free: 2.859 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/0.2354, allocations: 139.3 kB / 224 MB, free: 2.762 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001593/0.2356, allocations: 74.88 kB / 224 MB, free: 2.75 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.388e-06/0.2356, allocations: 0 / 224 MB, free: 2.75 MB / 170.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004761/0.2361, allocations: 244.5 kB / 224.3 MB, free: 2.676 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.2361, allocations: 3.938 kB / 224.3 MB, free: 2.676 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.872e-06/0.2361, allocations: 3.812 kB / 224.3 MB, free: 2.676 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.2362, allocations: 3.875 kB / 224.3 MB, free: 2.676 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.2363, allocations: 42.88 kB / 224.3 MB, free: 2.66 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.31e-06/0.2363, allocations: 7.875 kB / 224.3 MB, free: 2.656 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001346/0.2365, allocations: 15.09 kB / 224.4 MB, free: 2.652 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.384e-05/0.2365, allocations: 15.25 kB / 224.4 MB, free: 2.652 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,greaterEqual.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.0001861/0.2367, allocations: 174.5 kB / 224.5 MB, free: 2.512 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.78e-05/0.2368, allocations: 7.5 kB / 224.6 MB, free: 2.508 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004002/0.2372, allocations: 198.3 kB / 224.8 MB, free: 2.434 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.069e-06/0.2372, allocations: 3.844 kB / 224.8 MB, free: 2.434 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.993e-06/0.2372, allocations: 0 / 224.8 MB, free: 2.434 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.2372, allocations: 0 / 224.8 MB, free: 2.434 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008616/0.2381, allocations: 0.5885 MB / 225.3 MB, free: 2.023 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.651e-06/0.2381, allocations: 0 / 225.3 MB, free: 2.023 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.811e-05/0.2382, allocations: 17.59 kB / 225.4 MB, free: 2.02 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.676e-06/0.2383, allocations: 0 / 225.4 MB, free: 2.02 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.2383, allocations: 11.3 kB / 225.4 MB, free: 2.012 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.765e-06/0.2383, allocations: 7.875 kB / 225.4 MB, free: 2.008 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.876e-06/0.2383, allocations: 0 / 225.4 MB, free: 2.008 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003749/0.2387, allocations: 272.4 kB / 225.6 MB, free: 1.848 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.051e-05/0.2387, allocations: 92.58 kB / 225.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.384e-05/0.2388, allocations: 6.969 kB / 225.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001259/0.2389, allocations: 6.031 kB / 225.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.274e-05/0.239, allocations: 27.2 kB / 225.8 MB, free: 1.727 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.878e-05/0.2391, allocations: 7.531 kB / 225.8 MB, free: 1.727 MB / 170.7 MB Notification: Performance of sorting global known variables: time 5.767e-05/0.2391, allocations: 102.4 kB / 225.9 MB, free: 1.645 MB / 170.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.2391, allocations: 0 / 225.9 MB, free: 1.645 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004118/0.2396, allocations: 42.25 kB / 225.9 MB, free: 1.645 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,greaterEqual.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.0001343/0.2397, allocations: 121.2 kB / 226 MB, free: 1.543 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0003814/0.2401, allocations: 180.2 kB / 226.2 MB, free: 1.512 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.602e-06/0.2401, allocations: 0 / 226.2 MB, free: 1.512 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001626/0.2403, allocations: 85.16 kB / 226.3 MB, free: 1.492 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.2406, allocations: 18.39 kB / 226.3 MB, free: 1.488 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006589/0.2412, allocations: 411.3 kB / 226.7 MB, free: 1.195 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001805/0.2414, allocations: 0.7455 MB / 227.5 MB, free: 476 kB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.444e-05/0.2415, allocations: 22.66 kB / 227.5 MB, free: 468 kB / 170.7 MB Notification: Performance of SimCode: time 1.464e-06/0.2415, allocations: 0 / 227.5 MB, free: 468 kB / 170.7 MB Notification: Performance of Templates: time 0.004742/0.2463, allocations: 2.33 MB / 229.8 MB, free: 15.3 MB / 186.7 MB