Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 1.93/1.93, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003551/0.0003553, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07817/0.07855, allocations: 44.5 MB / 308.4 MB, free: 1.004 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3191/0.3977, allocations: 70.88 MB / 379.3 MB, free: 18.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002071/0.3979, allocations: 64.7 kB / 379.4 MB, free: 18.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00943/0.4074, allocations: 2.797 MB / 382.2 MB, free: 18.33 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.4074, allocations: 0 / 382.2 MB, free: 18.33 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.808e-05/0.4075, allocations: 8.625 kB / 382.2 MB, free: 18.32 MB / 314.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.0005385/0.408, allocations: 437.3 kB / 382.6 MB, free: 17.94 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.4081, allocations: 9.219 kB / 382.6 MB, free: 17.94 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.796e-05/0.4082, allocations: 18.94 kB / 382.6 MB, free: 17.93 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002242/0.4084, allocations: 230.5 kB / 382.9 MB, free: 17.72 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.898e-05/0.4084, allocations: 21.23 kB / 382.9 MB, free: 17.72 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.62e-05/0.4085, allocations: 23.34 kB / 382.9 MB, free: 17.72 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004973/0.409, allocations: 232.1 kB / 383.1 MB, free: 17.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.409, allocations: 0 / 383.1 MB, free: 17.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.025e-05/0.4091, allocations: 9.938 kB / 383.1 MB, free: 17.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.4091, allocations: 6.469 kB / 383.1 MB, free: 17.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004206/0.4095, allocations: 159.7 kB / 383.3 MB, free: 17.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.4107, allocations: 0.6804 MB / 384 MB, free: 17.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003639/0.4111, allocations: 174.9 kB / 384.2 MB, free: 17.23 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.4112, allocations: 5.562 kB / 384.2 MB, free: 17.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002219/0.4114, allocations: 117 kB / 384.3 MB, free: 17.18 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.087e-06/0.4114, allocations: 0 / 384.3 MB, free: 17.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005313/0.412, allocations: 220.5 kB / 384.5 MB, free: 17.14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.723e-05/0.412, allocations: 54.53 kB / 384.5 MB, free: 17.07 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.4121, allocations: 138.4 kB / 384.7 MB, free: 16.97 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.38e-05/0.4122, allocations: 37.73 kB / 384.7 MB, free: 16.94 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.454e-05/0.4123, allocations: 194.9 kB / 384.9 MB, free: 16.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.49e-05/0.4123, allocations: 64.66 kB / 385 MB, free: 16.73 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.653e-05/0.4124, allocations: 5.188 kB / 385 MB, free: 16.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.026e-05/0.4124, allocations: 324.6 kB / 385.3 MB, free: 16.42 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.4126, allocations: 66.95 kB / 385.4 MB, free: 16.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001904/0.4128, allocations: 120.4 kB / 385.5 MB, free: 16.35 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001742/0.413, allocations: 63.98 kB / 385.5 MB, free: 16.35 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.413, allocations: 1.312 kB / 385.5 MB, free: 16.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004944/0.4135, allocations: 240.4 kB / 385.8 MB, free: 16.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.4136, allocations: 7.438 kB / 385.8 MB, free: 16.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.006e-06/0.4136, allocations: 1.875 kB / 385.8 MB, free: 16.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.4136, allocations: 4.156 kB / 385.8 MB, free: 16.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.4138, allocations: 32.02 kB / 385.8 MB, free: 16.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.4138, allocations: 16.02 kB / 385.8 MB, free: 16.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.414, allocations: 19.91 kB / 385.8 MB, free: 16.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.984e-05/0.414, allocations: 17.47 kB / 385.9 MB, free: 16.26 MB / 314.7 MB 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 () * Number of clocked 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.0001552/0.4142, allocations: 151.6 kB / 386 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.222e-05/0.4142, allocations: 10.31 kB / 386 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004407/0.4147, allocations: 188.2 kB / 386.2 MB, free: 16.1 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.287e-06/0.4147, allocations: 2.906 kB / 386.2 MB, free: 16.1 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.007e-06/0.4147, allocations: 5.375 kB / 386.2 MB, free: 16.1 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.047e-06/0.4147, allocations: 5.875 kB / 386.2 MB, free: 16.09 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008663/0.4156, allocations: 0.5606 MB / 386.8 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.254e-06/0.4156, allocations: 0 / 386.8 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.4157, allocations: 25.31 kB / 386.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.137e-06/0.4158, allocations: 5.328 kB / 386.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.4158, allocations: 8.812 kB / 386.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.4158, allocations: 1.375 kB / 386.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.097e-06/0.4158, allocations: 1.375 kB / 386.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003594/0.4162, allocations: 272.3 kB / 387.1 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.36e-05/0.4162, allocations: 95.05 kB / 387.2 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.343e-05/0.4163, allocations: 14.52 kB / 387.2 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.4164, allocations: 14.73 kB / 387.2 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.88e-05/0.4165, allocations: 31.77 kB / 387.2 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/0.4166, allocations: 5.5 kB / 387.2 MB, free: 15.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.331e-05/0.4166, allocations: 96.61 kB / 387.3 MB, free: 15.42 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.4166, allocations: 0 / 387.3 MB, free: 15.42 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004459/0.4171, allocations: 50.11 kB / 387.4 MB, free: 15.42 MB / 314.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) * Number of clocked states: 0 () * 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.000148/0.4173, allocations: 103.5 kB / 387.5 MB, free: 15.33 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004461/0.4177, allocations: 178 kB / 387.7 MB, free: 15.32 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.019e-06/0.4178, allocations: 0 / 387.7 MB, free: 15.32 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002661/0.418, allocations: 85.78 kB / 387.7 MB, free: 15.31 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.4183, allocations: 17.83 kB / 387.8 MB, free: 15.31 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006815/0.419, allocations: 394.6 kB / 388.2 MB, free: 15.05 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001921/0.4192, allocations: 0.7346 MB / 388.9 MB, free: 14.35 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.115e-05/0.4193, allocations: 22.88 kB / 388.9 MB, free: 14.35 MB / 314.7 MB Notification: Performance of SimCode: time 1.598e-06/0.4193, allocations: 0 / 388.9 MB, free: 14.35 MB / 314.7 MB Notification: Performance of Templates: time 0.004739/0.4241, allocations: 2.259 MB / 391.2 MB, free: 14.15 MB / 314.7 MB