Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.098/2.098, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003732/0.0003734, allocations: 16 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1007, allocations: 44.49 MB / 309 MB, free: 1.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4081/0.5088, allocations: 72.99 MB / 381.9 MB, free: 14.92 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000255/0.5091, allocations: 69.56 kB / 382 MB, free: 14.92 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0123/0.5215, allocations: 2.784 MB / 384.8 MB, free: 14.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5215, allocations: 0 / 384.8 MB, free: 14.45 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.989e-05/0.5215, allocations: 7.484 kB / 384.8 MB, free: 14.45 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.0009932/0.5225, allocations: 0.4896 MB / 385.3 MB, free: 14.03 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.5226, allocations: 9.625 kB / 385.3 MB, free: 14.03 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.759e-05/0.5227, allocations: 26.28 kB / 385.3 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003144/0.523, allocations: 239.8 kB / 385.6 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.12e-05/0.5231, allocations: 16.19 kB / 385.6 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.277e-05/0.5231, allocations: 14.19 kB / 385.6 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005498/0.5237, allocations: 214.2 kB / 385.8 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.5237, allocations: 1.125 kB / 385.8 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.691e-05/0.5237, allocations: 7.906 kB / 385.8 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.867e-05/0.5238, allocations: 7.062 kB / 385.8 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005346/0.5243, allocations: 144.5 kB / 386 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001519/0.5259, allocations: 0.7998 MB / 386.8 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.5269, allocations: 213.1 kB / 387 MB, free: 13.13 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.183e-05/0.527, allocations: 3.094 kB / 387 MB, free: 13.13 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000382/0.5274, allocations: 149.3 kB / 387.1 MB, free: 13.06 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 2.585e-06/0.5274, allocations: 0 / 387.1 MB, free: 13.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009493/0.5283, allocations: 253.3 kB / 387.4 MB, free: 13.01 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.395e-05/0.5284, allocations: 82.03 kB / 387.4 MB, free: 12.92 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002745/0.5287, allocations: 226.7 kB / 387.7 MB, free: 12.8 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.958e-05/0.5287, allocations: 30.86 kB / 387.7 MB, free: 12.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.356e-05/0.5288, allocations: 199.2 kB / 387.9 MB, free: 12.6 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.611e-05/0.5289, allocations: 37.83 kB / 387.9 MB, free: 12.58 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.56e-05/0.5289, allocations: 5.219 kB / 387.9 MB, free: 12.58 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.544e-05/0.529, allocations: 319.2 kB / 388.2 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002839/0.5293, allocations: 70.06 kB / 388.3 MB, free: 12.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002999/0.5296, allocations: 143 kB / 388.5 MB, free: 12.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002946/0.5299, allocations: 80.61 kB / 388.5 MB, free: 12.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/0.5299, allocations: 0 / 388.5 MB, free: 12.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007238/0.5307, allocations: 242.5 kB / 388.8 MB, free: 12.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.5307, allocations: 6.5 kB / 388.8 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.5307, allocations: 6.5 kB / 388.8 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.524e-05/0.5308, allocations: 4.031 kB / 388.8 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003137/0.5311, allocations: 42.55 kB / 388.8 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.5311, allocations: 10.78 kB / 388.8 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003189/0.5314, allocations: 38.39 kB / 388.9 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.85e-05/0.5315, allocations: 11.98 kB / 388.9 MB, free: 12.1 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.0002013/0.5317, allocations: 150 kB / 389 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.763e-05/0.5318, allocations: 21.41 kB / 389.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003748/0.5322, allocations: 130.6 kB / 389.2 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.5322, allocations: 6.594 kB / 389.2 MB, free: 11.92 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.5322, allocations: 0 / 389.2 MB, free: 11.92 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.5322, allocations: 5.25 kB / 389.2 MB, free: 11.92 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008179/0.533, allocations: 480.1 kB / 389.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.5331, allocations: 0 / 389.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002346/0.5333, allocations: 29.33 kB / 389.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.5333, allocations: 1.344 kB / 389.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.091e-05/0.5333, allocations: 1.344 kB / 389.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.5334, allocations: 1.344 kB / 389.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.5334, allocations: 1.281 kB / 389.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006354/0.534, allocations: 307 kB / 390 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.864e-05/0.5341, allocations: 95.97 kB / 390.1 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.899e-05/0.5342, allocations: 2.625 kB / 390.1 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002805/0.5344, allocations: 24.12 kB / 390.1 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.5346, allocations: 22.17 kB / 390.1 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-05/0.5346, allocations: 15.61 kB / 390.2 MB, free: 11.33 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001715/0.5348, allocations: 140.4 kB / 390.3 MB, free: 11.26 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5348, allocations: 0 / 390.3 MB, free: 11.26 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004605/0.5353, allocations: 46.14 kB / 390.3 MB, free: 11.25 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.0001872/0.5355, allocations: 112 kB / 390.4 MB, free: 11.16 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006733/0.5361, allocations: 176.9 kB / 390.6 MB, free: 11.15 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.5362, allocations: 1.312 kB / 390.6 MB, free: 11.15 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003113/0.5365, allocations: 81.48 kB / 390.7 MB, free: 11.14 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000373/0.5369, allocations: 33.83 kB / 390.7 MB, free: 11.13 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001021/0.5379, allocations: 430.2 kB / 391.2 MB, free: 10.87 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000214/0.5382, allocations: 0.7383 MB / 391.9 MB, free: 10.16 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.5383, allocations: 23.25 kB / 391.9 MB, free: 10.15 MB / 314.7 MB Notification: Performance of SimCode: time 1.964e-06/0.5383, allocations: 0 / 391.9 MB, free: 10.15 MB / 314.7 MB Notification: Performance of Templates: time 0.00583/0.5441, allocations: 2.383 MB / 394.3 MB, free: 9.961 MB / 314.7 MB