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.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 0.995/0.995, allocations: 111.2 MB / 124.2 MB, free: 11.14 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.152e-05/2.168e-05, allocations: 3.984 kB / 154.3 MB, free: 13.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1381, allocations: 25.15 MB / 179.4 MB, free: 0.7891 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05018/0.1884, allocations: 33.22 MB / 212.6 MB, free: 15.89 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/0.1886, allocations: 63.97 kB / 212.7 MB, free: 15.83 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01009/0.1987, allocations: 2.774 MB / 215.5 MB, free: 13.04 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.999e-06/0.1988, allocations: 0 / 215.5 MB, free: 13.04 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.699e-05/0.1988, allocations: 4.875 kB / 215.5 MB, free: 13.03 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006472/0.1995, allocations: 430.7 kB / 215.9 MB, free: 12.56 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.1995, allocations: 12.02 kB / 215.9 MB, free: 12.55 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.929e-05/0.1996, allocations: 27.67 kB / 215.9 MB, free: 12.52 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002999/0.1999, allocations: 207 kB / 216.1 MB, free: 12.28 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.036e-05/0.2, allocations: 24.44 kB / 216.2 MB, free: 12.26 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.486e-05/0.2, allocations: 27.98 kB / 216.2 MB, free: 12.23 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005033/0.2006, allocations: 225.9 kB / 216.4 MB, free: 12 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.2006, allocations: 0 / 216.4 MB, free: 12 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/0.2006, allocations: 8 kB / 216.4 MB, free: 11.99 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.2007, allocations: 15.89 kB / 216.4 MB, free: 11.98 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004003/0.2011, allocations: 149.7 kB / 216.6 MB, free: 11.83 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.2023, allocations: 0.683 MB / 217.3 MB, free: 11.09 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000394/0.2027, allocations: 163.4 kB / 217.4 MB, free: 10.92 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.2029, allocations: 77.23 kB / 217.5 MB, free: 10.84 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.2029, allocations: 192 / 217.5 MB, free: 10.84 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002428/0.2032, allocations: 127.9 kB / 217.6 MB, free: 10.7 MB / 186.7 MB Notification: Performance of pre-optimization done (n=24): time 3.02e-06/0.2032, allocations: 0 / 217.6 MB, free: 10.7 MB / 186.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004169/0.2036, allocations: 165.1 kB / 217.8 MB, free: 10.54 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.317e-05/0.2037, allocations: 59.41 kB / 217.8 MB, free: 10.47 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.2039, allocations: 137 kB / 218 MB, free: 10.32 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.505e-05/0.2039, allocations: 33.7 kB / 218 MB, free: 10.29 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.2041, allocations: 194.8 kB / 218.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.69e-05/0.2042, allocations: 63.23 kB / 218.3 MB, free: 10.03 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.848e-05/0.2042, allocations: 8 kB / 218.3 MB, free: 10.02 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.2044, allocations: 318.8 kB / 218.6 MB, free: 9.703 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.2045, allocations: 68.06 kB / 218.6 MB, free: 9.633 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002149/0.2048, allocations: 123.5 kB / 218.8 MB, free: 9.488 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000176/0.205, allocations: 64.45 kB / 218.8 MB, free: 9.426 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.775e-06/0.205, allocations: 0 / 218.8 MB, free: 9.426 MB / 186.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005208/0.2055, allocations: 237.2 kB / 219.1 MB, free: 9.188 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.2055, allocations: 10.19 kB / 219.1 MB, free: 9.18 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.76e-06/0.2056, allocations: 0 / 219.1 MB, free: 9.18 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.2056, allocations: 4 kB / 219.1 MB, free: 9.176 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/0.2058, allocations: 32.14 kB / 219.1 MB, free: 9.145 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.2058, allocations: 7.938 kB / 219.1 MB, free: 9.137 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00014/0.2059, allocations: 19.94 kB / 219.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.826e-05/0.206, allocations: 15.97 kB / 219.1 MB, free: 9.102 MB / 186.7 MB Warning: Assuming fixed start value for the following 2 variables: transition2.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real 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: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.000179/0.2062, allocations: 139.4 kB / 219.3 MB, free: 8.965 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.565e-05/0.2062, allocations: 15.77 kB / 219.3 MB, free: 8.949 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004499/0.2067, allocations: 202.2 kB / 219.5 MB, free: 8.746 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.418e-06/0.2067, allocations: 4 kB / 219.5 MB, free: 8.742 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.2067, allocations: 3.984 kB / 219.5 MB, free: 8.738 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.747e-06/0.2067, allocations: 0 / 219.5 MB, free: 8.738 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.2078, allocations: 0.5457 MB / 220.1 MB, free: 8.137 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.954e-06/0.2078, allocations: 0 / 220.1 MB, free: 8.137 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.2079, allocations: 19.98 kB / 220.1 MB, free: 8.117 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.747e-06/0.2079, allocations: 0 / 220.1 MB, free: 8.117 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.59e-05/0.208, allocations: 11.94 kB / 220.1 MB, free: 8.105 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.444e-06/0.208, allocations: 3.938 kB / 220.1 MB, free: 8.102 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.695e-06/0.208, allocations: 0 / 220.1 MB, free: 8.102 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004187/0.2084, allocations: 279.4 kB / 220.4 MB, free: 7.812 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.26e-05/0.2085, allocations: 88.95 kB / 220.4 MB, free: 7.707 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.718e-05/0.2086, allocations: 11.98 kB / 220.5 MB, free: 7.695 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.2087, allocations: 12 kB / 220.5 MB, free: 7.684 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.318e-05/0.2088, allocations: 19.97 kB / 220.5 MB, free: 7.66 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.58e-05/0.2088, allocations: 11.98 kB / 220.5 MB, free: 7.648 MB / 186.7 MB Notification: Performance of sorting global known variables: time 7.86e-05/0.2089, allocations: 91.28 kB / 220.6 MB, free: 7.559 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.16e-07/0.2089, allocations: 0 / 220.6 MB, free: 7.559 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004067/0.2094, allocations: 40 kB / 220.6 MB, free: 7.52 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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * 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.000184/0.2095, allocations: 115.2 kB / 220.7 MB, free: 7.395 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004174/0.21, allocations: 180.1 kB / 220.9 MB, free: 7.219 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.21, allocations: 0 / 220.9 MB, free: 7.219 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001746/0.2102, allocations: 75.94 kB / 221 MB, free: 7.145 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002525/0.2105, allocations: 27.86 kB / 221 MB, free: 7.117 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005973/0.2111, allocations: 256.1 kB / 221.3 MB, free: 6.84 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004487/0.2115, allocations: 0.7369 MB / 222 MB, free: 6.074 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.76e-05/0.2116, allocations: 23.42 kB / 222 MB, free: 6.055 MB / 186.7 MB Notification: Performance of SimCode: time 1.511e-06/0.2116, allocations: 0 / 222 MB, free: 6.055 MB / 186.7 MB Notification: Performance of Templates: time 0.005096/0.2167, allocations: 2.247 MB / 224.3 MB, free: 3.809 MB / 186.7 MB