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_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 1.835/1.835, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000351/0.0003511, allocations: 8 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08054/0.08091, allocations: 44.52 MB / 308.4 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3997/0.4807, allocations: 71.51 MB / 380 MB, free: 18.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002013/0.4809, allocations: 70.47 kB / 380 MB, free: 18.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01021/0.4912, allocations: 2.934 MB / 383 MB, free: 18.37 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.534e-06/0.4912, allocations: 4 kB / 383 MB, free: 18.37 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.662e-05/0.4912, allocations: 4.938 kB / 383 MB, free: 18.37 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0005151/0.4918, allocations: 439 kB / 383.4 MB, free: 17.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.4918, allocations: 13.56 kB / 383.4 MB, free: 17.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.234e-05/0.4919, allocations: 25.2 kB / 383.4 MB, free: 17.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002397/0.4921, allocations: 223.9 kB / 383.7 MB, free: 17.76 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.826e-05/0.4922, allocations: 23.56 kB / 383.7 MB, free: 17.76 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.033e-05/0.4923, allocations: 25.62 kB / 383.7 MB, free: 17.76 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004838/0.4928, allocations: 264.6 kB / 384 MB, free: 17.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.4928, allocations: 3.938 kB / 384 MB, free: 17.67 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.155e-05/0.4928, allocations: 10.72 kB / 384 MB, free: 17.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.061e-06/0.4929, allocations: 6.094 kB / 384 MB, free: 17.67 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004014/0.4933, allocations: 165 kB / 384.1 MB, free: 17.67 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001111/0.4944, allocations: 0.9476 MB / 385.1 MB, free: 17.02 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003229/0.4947, allocations: 145.5 kB / 385.2 MB, free: 16.99 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/0.4948, allocations: 6.891 kB / 385.2 MB, free: 16.99 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.495, allocations: 125.1 kB / 385.4 MB, free: 16.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 2.797e-06/0.495, allocations: 0 / 385.4 MB, free: 16.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.000489/0.4955, allocations: 204.7 kB / 385.6 MB, free: 16.89 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.223e-05/0.4956, allocations: 57.69 kB / 385.6 MB, free: 16.83 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.4957, allocations: 140 kB / 385.8 MB, free: 16.73 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.096e-05/0.4957, allocations: 36.95 kB / 385.8 MB, free: 16.7 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.301e-05/0.4958, allocations: 207.2 kB / 386 MB, free: 16.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.981e-05/0.4959, allocations: 63.55 kB / 386.1 MB, free: 16.49 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.528e-05/0.4959, allocations: 8.938 kB / 386.1 MB, free: 16.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.523e-05/0.496, allocations: 329.4 kB / 386.4 MB, free: 16.17 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.4961, allocations: 60.64 kB / 386.4 MB, free: 16.16 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.4963, allocations: 132.8 kB / 386.6 MB, free: 16.09 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/0.4965, allocations: 65.16 kB / 386.6 MB, free: 16.08 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.512e-06/0.4965, allocations: 4.594 kB / 386.6 MB, free: 16.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004912/0.497, allocations: 256.4 kB / 386.9 MB, free: 16.01 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.497, allocations: 9.016 kB / 386.9 MB, free: 16.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.067e-06/0.4971, allocations: 3 kB / 386.9 MB, free: 16.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.4971, allocations: 5.938 kB / 386.9 MB, free: 16.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.4973, allocations: 29.52 kB / 386.9 MB, free: 16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.857e-06/0.4973, allocations: 5.031 kB / 386.9 MB, free: 16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.4974, allocations: 19.14 kB / 387 MB, free: 16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.736e-05/0.4975, allocations: 16.06 kB / 387 MB, free: 16 MB / 314.7 MB 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,SetBoolean1.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.0001436/0.4976, allocations: 158.4 kB / 387.1 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.028e-05/0.4977, allocations: 13.59 kB / 387.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004109/0.4981, allocations: 193.3 kB / 387.3 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.258e-06/0.4981, allocations: 1.438 kB / 387.3 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.396e-06/0.4981, allocations: 1.406 kB / 387.3 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.538e-06/0.4982, allocations: 1.922 kB / 387.3 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008349/0.499, allocations: 0.5881 MB / 387.9 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.961e-06/0.499, allocations: 1.375 kB / 387.9 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.4991, allocations: 21.44 kB / 387.9 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.633e-06/0.4992, allocations: 5.359 kB / 388 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.4992, allocations: 5.188 kB / 388 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.825e-06/0.4992, allocations: 1.375 kB / 388 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.621e-06/0.4992, allocations: 0 / 388 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003648/0.4996, allocations: 275.2 kB / 388.2 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.226e-05/0.4996, allocations: 90.45 kB / 388.3 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.298e-05/0.4997, allocations: 10.66 kB / 388.3 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.4998, allocations: 5.516 kB / 388.3 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.962e-05/0.4999, allocations: 27.5 kB / 388.4 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.059e-05/0.5, allocations: 7.531 kB / 388.4 MB, free: 15.19 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.403e-05/0.5, allocations: 94.77 kB / 388.5 MB, free: 15.12 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.62e-07/0.5, allocations: 0 / 388.5 MB, free: 15.12 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004128/0.5005, allocations: 51.09 kB / 388.5 MB, free: 15.11 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 (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,SetBoolean1.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.0001306/0.5006, allocations: 111.4 kB / 388.6 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003982/0.501, allocations: 174 kB / 388.8 MB, free: 15.01 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.381e-06/0.501, allocations: 0 / 388.8 MB, free: 15.01 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001649/0.5012, allocations: 77.69 kB / 388.9 MB, free: 15.01 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002337/0.5015, allocations: 26.14 kB / 388.9 MB, free: 15 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006595/0.5021, allocations: 412.1 kB / 389.3 MB, free: 14.72 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001906/0.5023, allocations: 0.735 MB / 390 MB, free: 14.03 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.298e-05/0.5024, allocations: 30.72 kB / 390.1 MB, free: 14.02 MB / 314.7 MB Notification: Performance of SimCode: time 1.377e-06/0.5024, allocations: 0 / 390.1 MB, free: 14.02 MB / 314.7 MB Notification: Performance of Templates: time 0.004625/0.5071, allocations: 2.315 MB / 392.4 MB, free: 13.8 MB / 314.7 MB