Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 1.694/1.694, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003779/0.0003782, allocations: 8 kB / 233.1 MB, free: 3.059 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06998/0.07038, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00181/0.07222, allocations: 1.168 MB / 273.1 MB, free: 11.02 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006437/0.0729, allocations: 255.3 kB / 273.3 MB, free: 10.77 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.598e-05/0.07301, allocations: 7.938 kB / 273.3 MB, free: 10.76 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 9.789e-05/0.07313, allocations: 19.8 kB / 273.4 MB, free: 10.74 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 4.92e-05/0.07319, allocations: 11.92 kB / 273.4 MB, free: 10.73 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000351/0.07355, allocations: 83.89 kB / 273.5 MB, free: 10.64 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000277/0.07385, allocations: 155.7 kB / 273.6 MB, free: 10.49 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002767/0.07414, allocations: 126.2 kB / 273.7 MB, free: 10.36 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.07426, allocations: 63.78 kB / 273.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.0744, allocations: 75.67 kB / 273.9 MB, free: 10.23 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.272e-05/0.07446, allocations: 12 kB / 273.9 MB, free: 10.21 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.571e-05/0.07454, allocations: 15.94 kB / 273.9 MB, free: 10.2 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.274e-05/0.07462, allocations: 39.84 kB / 273.9 MB, free: 10.16 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.631e-05/0.0747, allocations: 53.62 kB / 274 MB, free: 10.1 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002417/0.07495, allocations: 151.6 kB / 274.1 MB, free: 9.953 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.754e-06/0.07497, allocations: 0 / 274.1 MB, free: 9.953 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.74e-06/0.07498, allocations: 0 / 274.1 MB, free: 9.953 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.404e-06/0.075, allocations: 0 / 274.1 MB, free: 9.953 MB / 234.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.0007038/0.07571, allocations: 450.5 kB / 274.6 MB, free: 9.465 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.07576, allocations: 12.03 kB / 274.6 MB, free: 9.453 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.672e-05/0.07584, allocations: 15.81 kB / 274.6 MB, free: 9.438 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003031/0.07616, allocations: 222.8 kB / 274.8 MB, free: 9.18 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.418e-05/0.07622, allocations: 24.42 kB / 274.8 MB, free: 9.156 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.204e-05/0.07628, allocations: 24 kB / 274.9 MB, free: 9.133 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005314/0.07682, allocations: 229.8 kB / 275.1 MB, free: 8.895 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.07685, allocations: 4 kB / 275.1 MB, free: 8.891 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.905e-05/0.0769, allocations: 11.98 kB / 275.1 MB, free: 8.879 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.575e-06/0.07692, allocations: 7.938 kB / 275.1 MB, free: 8.871 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004218/0.07735, allocations: 165.6 kB / 275.3 MB, free: 8.711 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001305/0.07867, allocations: 0.6897 MB / 276 MB, free: 7.965 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004208/0.07912, allocations: 171.3 kB / 276.1 MB, free: 7.789 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.07916, allocations: 192 / 276.1 MB, free: 7.789 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003002/0.07947, allocations: 130.8 kB / 276.3 MB, free: 7.652 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 2.727e-06/0.07949, allocations: 0 / 276.3 MB, free: 7.652 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005763/0.08007, allocations: 217.3 kB / 276.5 MB, free: 7.434 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.818e-05/0.08015, allocations: 55.41 kB / 276.5 MB, free: 7.367 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001645/0.08032, allocations: 145.9 kB / 276.7 MB, free: 7.211 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.494e-05/0.08038, allocations: 37.7 kB / 276.7 MB, free: 7.168 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.08054, allocations: 199 kB / 276.9 MB, free: 6.973 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.836e-05/0.08063, allocations: 63.25 kB / 277 MB, free: 6.91 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.552e-05/0.08066, allocations: 8 kB / 277 MB, free: 6.902 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.08085, allocations: 326.8 kB / 277.3 MB, free: 6.574 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001721/0.08103, allocations: 60.62 kB / 277.3 MB, free: 6.512 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002313/0.08127, allocations: 128.1 kB / 277.5 MB, free: 6.363 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.08147, allocations: 71.92 kB / 277.5 MB, free: 6.293 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.398e-06/0.08149, allocations: 0 / 277.5 MB, free: 6.293 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005365/0.08204, allocations: 233.4 kB / 277.8 MB, free: 6.059 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.08207, allocations: 8.156 kB / 277.8 MB, free: 6.051 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.692e-06/0.08209, allocations: 4 kB / 277.8 MB, free: 6.047 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.08212, allocations: 4 kB / 277.8 MB, free: 6.043 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/0.08231, allocations: 35.91 kB / 277.8 MB, free: 6.008 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.431e-05/0.08234, allocations: 8 kB / 277.8 MB, free: 6 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001571/0.0825, allocations: 31.69 kB / 277.9 MB, free: 5.969 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.063e-05/0.08256, allocations: 19.92 kB / 277.9 MB, free: 5.949 MB / 234.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,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,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.0002026/0.08277, allocations: 149.7 kB / 278 MB, free: 5.793 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.852e-05/0.08282, allocations: 15.91 kB / 278 MB, free: 5.777 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004721/0.08331, allocations: 198.2 kB / 278.2 MB, free: 5.574 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.819e-06/0.08333, allocations: 4 kB / 278.2 MB, free: 5.57 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.226e-06/0.08335, allocations: 0 / 278.2 MB, free: 5.57 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.054e-06/0.08336, allocations: 0 / 278.2 MB, free: 5.57 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.08444, allocations: 0.561 MB / 278.8 MB, free: 4.953 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.265e-06/0.08447, allocations: 7.938 kB / 278.8 MB, free: 4.945 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001088/0.08458, allocations: 15.98 kB / 278.8 MB, free: 4.93 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.629e-06/0.0846, allocations: 0 / 278.8 MB, free: 4.93 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.916e-05/0.08463, allocations: 4 kB / 278.8 MB, free: 4.926 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.731e-06/0.08465, allocations: 4 kB / 278.8 MB, free: 4.922 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.459e-06/0.08466, allocations: 3.953 kB / 278.8 MB, free: 4.918 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004536/0.08512, allocations: 283.6 kB / 279.1 MB, free: 4.625 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.144e-05/0.08521, allocations: 92.86 kB / 279.2 MB, free: 4.516 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.406e-05/0.08526, allocations: 8 kB / 279.2 MB, free: 4.508 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.08541, allocations: 15.98 kB / 279.2 MB, free: 4.492 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.366e-05/0.0855, allocations: 15.97 kB / 279.2 MB, free: 4.477 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-05/0.08555, allocations: 19.94 kB / 279.3 MB, free: 4.457 MB / 234.7 MB Notification: Performance of sorting global known variables: time 9.1e-05/0.08565, allocations: 91.77 kB / 279.3 MB, free: 4.367 MB / 234.7 MB Notification: Performance of sort global known variables: time 6.99e-07/0.08566, allocations: 0 / 279.3 MB, free: 4.367 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.000429/0.0861, allocations: 51.84 kB / 279.4 MB, free: 4.316 MB / 234.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.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,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.0001785/0.08629, allocations: 119.1 kB / 279.5 MB, free: 4.191 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0004697/0.08677, allocations: 176 kB / 279.7 MB, free: 4.02 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.663e-06/0.08679, allocations: 0 / 279.7 MB, free: 4.02 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001925/0.087, allocations: 83.91 kB / 279.8 MB, free: 3.938 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002483/0.08726, allocations: 15.98 kB / 279.8 MB, free: 3.922 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007896/0.08806, allocations: 389.5 kB / 280.2 MB, free: 3.508 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004438/0.08853, allocations: 0.7328 MB / 280.9 MB, free: 2.75 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.618e-05/0.08863, allocations: 23.42 kB / 280.9 MB, free: 2.73 MB / 234.7 MB Notification: Performance of SimCode: time 1.582e-06/0.08864, allocations: 0 / 280.9 MB, free: 2.73 MB / 234.7 MB Notification: Performance of Templates: time 0.00529/0.09394, allocations: 2.268 MB / 283.2 MB, free: 472 kB / 234.7 MB