Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Blocks.Examples.IntegerNetwork1.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.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadModel(Modelica): time 1.794/1.794, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007582/0.0007581, allocations: 8 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1405, allocations: 44.5 MB / 308.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3276/0.4681, allocations: 73 MB / 381.4 MB, free: 18.81 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000199/0.4683, allocations: 65.23 kB / 381.5 MB, free: 18.81 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01092/0.4793, allocations: 2.787 MB / 384.3 MB, free: 18.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.662e-06/0.4793, allocations: 0 / 384.3 MB, free: 18.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.767e-05/0.4793, allocations: 4.125 kB / 384.3 MB, free: 18.34 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0007481/0.4801, allocations: 500 kB / 384.8 MB, free: 17.92 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.4802, allocations: 8.969 kB / 384.8 MB, free: 17.92 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.756e-05/0.4802, allocations: 27.72 kB / 384.8 MB, free: 17.9 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.4805, allocations: 240.4 kB / 385 MB, free: 17.68 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.722e-05/0.4806, allocations: 10.69 kB / 385.1 MB, free: 17.68 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.711e-05/0.4806, allocations: 17.47 kB / 385.1 MB, free: 17.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004633/0.4811, allocations: 213 kB / 385.3 MB, free: 17.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.4811, allocations: 5.031 kB / 385.3 MB, free: 17.6 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.646e-05/0.4812, allocations: 5.281 kB / 385.3 MB, free: 17.6 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.586e-05/0.4812, allocations: 9.531 kB / 385.3 MB, free: 17.6 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004361/0.4816, allocations: 146.4 kB / 385.4 MB, free: 17.59 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001204/0.4829, allocations: 0.8005 MB / 386.2 MB, free: 17.05 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007454/0.4836, allocations: 203.8 kB / 386.4 MB, free: 17.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.531e-05/0.4837, allocations: 10.7 kB / 386.5 MB, free: 17.01 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003263/0.484, allocations: 158.2 kB / 386.6 MB, free: 16.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 3.579e-06/0.4841, allocations: 0 / 386.6 MB, free: 16.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007978/0.4849, allocations: 246.2 kB / 386.8 MB, free: 16.89 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/0.4849, allocations: 83.77 kB / 386.9 MB, free: 16.79 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002346/0.4852, allocations: 196.3 kB / 387.1 MB, free: 16.69 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.4852, allocations: 33.56 kB / 387.2 MB, free: 16.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.441e-05/0.4853, allocations: 193.3 kB / 387.3 MB, free: 16.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.909e-05/0.4854, allocations: 36.17 kB / 387.4 MB, free: 16.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.365e-05/0.4854, allocations: 3.938 kB / 387.4 MB, free: 16.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.621e-05/0.4854, allocations: 327.6 kB / 387.7 MB, free: 16.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002164/0.4857, allocations: 72.09 kB / 387.8 MB, free: 16.16 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002355/0.4859, allocations: 144.7 kB / 387.9 MB, free: 16.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002309/0.4862, allocations: 80.33 kB / 388 MB, free: 16.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.754e-06/0.4862, allocations: 0 / 388 MB, free: 16.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005839/0.4868, allocations: 244.8 kB / 388.2 MB, free: 16.01 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.4868, allocations: 5.062 kB / 388.2 MB, free: 16.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.069e-06/0.4868, allocations: 1.781 kB / 388.2 MB, free: 16.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.492e-05/0.4869, allocations: 3.844 kB / 388.2 MB, free: 16.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002533/0.4871, allocations: 50.55 kB / 388.3 MB, free: 16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.4872, allocations: 3.594 kB / 388.3 MB, free: 16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002367/0.4874, allocations: 38.47 kB / 388.3 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.409e-05/0.4875, allocations: 7.875 kB / 388.3 MB, free: 15.99 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: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001605/0.4876, allocations: 151.7 kB / 388.5 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.243e-05/0.4877, allocations: 19.78 kB / 388.5 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003133/0.488, allocations: 131.3 kB / 388.6 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.155e-06/0.488, allocations: 1.594 kB / 388.6 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.164e-06/0.4881, allocations: 0.7812 kB / 388.6 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.078e-06/0.4881, allocations: 4.812 kB / 388.6 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007117/0.4888, allocations: 488.3 kB / 389.1 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.188e-06/0.4888, allocations: 9.375 kB / 389.1 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001588/0.489, allocations: 19.94 kB / 389.1 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.941e-06/0.489, allocations: 1.531 kB / 389.1 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.489, allocations: 1.531 kB / 389.2 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.202e-06/0.4891, allocations: 5.75 kB / 389.2 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.76e-06/0.4891, allocations: 1.5 kB / 389.2 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005205/0.4896, allocations: 306 kB / 389.5 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.509e-05/0.4897, allocations: 96.14 kB / 389.5 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.104e-05/0.4897, allocations: 7.188 kB / 389.6 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002276/0.49, allocations: 24.06 kB / 389.6 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.017e-05/0.4901, allocations: 28.89 kB / 389.6 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.461e-05/0.4901, allocations: 5.062 kB / 389.6 MB, free: 15.21 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001358/0.4902, allocations: 144.8 kB / 389.8 MB, free: 15.13 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.89e-07/0.4903, allocations: 0 / 389.8 MB, free: 15.13 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004448/0.4907, allocations: 41.34 kB / 389.8 MB, free: 15.13 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulsStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulsStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001599/0.4909, allocations: 122.3 kB / 389.9 MB, free: 15.03 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000519/0.4914, allocations: 172.8 kB / 390.1 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.159e-06/0.4914, allocations: 0 / 390.1 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002428/0.4917, allocations: 82.48 kB / 390.2 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.0003221/0.492, allocations: 28.81 kB / 390.2 MB, free: 15.01 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007869/0.4928, allocations: 428.3 kB / 390.6 MB, free: 14.74 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001958/0.4931, allocations: 0.7397 MB / 391.4 MB, free: 14.04 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.223e-05/0.4932, allocations: 24.17 kB / 391.4 MB, free: 14.03 MB / 314.7 MB Notification: Performance of SimCode: time 1.335e-06/0.4932, allocations: 0 / 391.4 MB, free: 14.03 MB / 314.7 MB Notification: Performance of Templates: time 0.004731/0.4979, allocations: 2.387 MB / 393.8 MB, free: 13.84 MB / 314.7 MB