Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.803/1.803, allocations: 171.1 MB / 187.3 MB, free: 1.059 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003567, allocations: 8 kB / 233.8 MB, free: 3.074 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08556/0.08594, allocations: 38.78 MB / 272.5 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3943/0.4803, allocations: 65.55 MB / 338.1 MB, free: 8.426 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.4806, allocations: 68.41 kB / 338.2 MB, free: 8.391 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0116/0.4922, allocations: 2.793 MB / 341 MB, free: 5.957 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4923, allocations: 3.938 kB / 341 MB, free: 5.953 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.665e-05/0.4923, allocations: 4.875 kB / 341 MB, free: 5.949 MB / 266.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.0007296/0.493, allocations: 445.9 kB / 341.4 MB, free: 5.477 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.4931, allocations: 8.031 kB / 341.4 MB, free: 5.469 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.359e-05/0.4932, allocations: 19.81 kB / 341.4 MB, free: 5.449 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000315/0.4935, allocations: 227.7 kB / 341.6 MB, free: 5.203 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.03e-05/0.4936, allocations: 19.44 kB / 341.7 MB, free: 5.191 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.776e-05/0.4936, allocations: 27.39 kB / 341.7 MB, free: 5.172 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005739/0.4942, allocations: 236.1 kB / 341.9 MB, free: 4.992 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.4942, allocations: 0 / 341.9 MB, free: 4.992 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.247e-05/0.4943, allocations: 9.625 kB / 341.9 MB, free: 4.988 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.4943, allocations: 4 kB / 341.9 MB, free: 4.984 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004784/0.4948, allocations: 163.1 kB / 342.1 MB, free: 4.875 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.4962, allocations: 0.6753 MB / 342.8 MB, free: 4.258 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000443/0.4967, allocations: 179.8 kB / 342.9 MB, free: 4.129 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.865e-05/0.4967, allocations: 192 / 342.9 MB, free: 4.129 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002757/0.497, allocations: 114.3 kB / 343.1 MB, free: 4.027 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.364e-06/0.497, allocations: 0 / 343.1 MB, free: 4.027 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006394/0.4977, allocations: 216.3 kB / 343.3 MB, free: 3.859 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.844e-05/0.4977, allocations: 63.39 kB / 343.3 MB, free: 3.785 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001868/0.4979, allocations: 144.8 kB / 343.5 MB, free: 3.648 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.999e-05/0.498, allocations: 36.64 kB / 343.5 MB, free: 3.613 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001632/0.4982, allocations: 193.9 kB / 343.7 MB, free: 3.426 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.419e-05/0.4983, allocations: 62.23 kB / 343.8 MB, free: 3.375 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.931e-05/0.4983, allocations: 7.062 kB / 343.8 MB, free: 3.371 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.4985, allocations: 327.5 kB / 344.1 MB, free: 3.051 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001914/0.4987, allocations: 62 kB / 344.1 MB, free: 3.004 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002434/0.4989, allocations: 127.8 kB / 344.3 MB, free: 2.883 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002357/0.4992, allocations: 69.61 kB / 344.3 MB, free: 2.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.4992, allocations: 4 kB / 344.3 MB, free: 2.836 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000568/0.4998, allocations: 232.2 kB / 344.6 MB, free: 2.656 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.4998, allocations: 4 kB / 344.6 MB, free: 2.652 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.4998, allocations: 4 kB / 344.6 MB, free: 2.648 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.523e-05/0.4999, allocations: 4 kB / 344.6 MB, free: 2.645 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002312/0.5001, allocations: 38.97 kB / 344.6 MB, free: 2.609 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.5001, allocations: 0 / 344.6 MB, free: 2.609 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.5003, allocations: 21.77 kB / 344.6 MB, free: 2.594 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.256e-05/0.5003, allocations: 19.19 kB / 344.7 MB, free: 2.578 MB / 266.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.0002055/0.5006, allocations: 162 kB / 344.8 MB, free: 2.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.297e-05/0.5006, allocations: 11.81 kB / 344.8 MB, free: 2.418 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005161/0.5011, allocations: 192.8 kB / 345 MB, free: 2.273 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.5012, allocations: 7.938 kB / 345 MB, free: 2.266 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.5012, allocations: 3.938 kB / 345 MB, free: 2.262 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.5012, allocations: 4 kB / 345 MB, free: 2.258 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/0.5023, allocations: 0.5602 MB / 345.6 MB, free: 1.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.5023, allocations: 0 / 345.6 MB, free: 1.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001357/0.5024, allocations: 15.62 kB / 345.6 MB, free: 1.719 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.225e-05/0.5025, allocations: 7.984 kB / 345.6 MB, free: 1.711 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.5025, allocations: 0 / 345.6 MB, free: 1.711 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.5025, allocations: 4 kB / 345.6 MB, free: 1.707 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/0.5025, allocations: 3.953 kB / 345.6 MB, free: 1.703 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004564/0.503, allocations: 279.3 kB / 345.9 MB, free: 1.457 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.53e-05/0.5031, allocations: 92.86 kB / 346 MB, free: 1.348 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.004e-05/0.5031, allocations: 7.938 kB / 346 MB, free: 1.344 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.5033, allocations: 11.55 kB / 346 MB, free: 1.336 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.5034, allocations: 26.92 kB / 346 MB, free: 1.312 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.309e-05/0.5034, allocations: 8 kB / 346 MB, free: 1.305 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.213e-05/0.5035, allocations: 98.39 kB / 346.1 MB, free: 1.215 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5036, allocations: 0 / 346.1 MB, free: 1.215 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004166/0.504, allocations: 43 kB / 346.2 MB, free: 1.18 MB / 266.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.000209/0.5042, allocations: 118.8 kB / 346.3 MB, free: 1.055 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004917/0.5047, allocations: 176.9 kB / 346.5 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.5047, allocations: 8.062 kB / 346.5 MB, free: 0.918 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002105/0.5049, allocations: 77.41 kB / 346.6 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.5052, allocations: 20.38 kB / 346.6 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008353/0.5061, allocations: 389.5 kB / 347 MB, free: 476 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003635/0.5064, allocations: 0.7406 MB / 347.7 MB, free: 15.7 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.599e-05/0.5066, allocations: 23.42 kB / 347.7 MB, free: 15.68 MB / 282.7 MB Notification: Performance of SimCode: time 8.51e-07/0.5066, allocations: 4 kB / 347.7 MB, free: 15.68 MB / 282.7 MB Notification: Performance of Templates: time 0.006098/0.5127, allocations: 2.26 MB / 350 MB, free: 13.45 MB / 282.7 MB