Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Blocks.Examples.IntegerNetwork1.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.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadModel(Modelica): time 1.743/1.743, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003673/0.0003676, allocations: 12 kB / 233.2 MB, free: 3.016 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07063/0.07102, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3417/0.4128, allocations: 67.69 MB / 339.7 MB, free: 6.137 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.413, allocations: 68.72 kB / 339.8 MB, free: 6.102 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01178/0.4248, allocations: 2.794 MB / 342.6 MB, free: 3.695 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.811e-06/0.4249, allocations: 0 / 342.6 MB, free: 3.695 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.941e-05/0.4249, allocations: 4 kB / 342.6 MB, free: 3.691 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009095/0.4258, allocations: 0.4936 MB / 343.1 MB, free: 3.164 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.4259, allocations: 8.031 kB / 343.1 MB, free: 3.156 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.044e-05/0.4259, allocations: 23.72 kB / 343.1 MB, free: 3.133 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003482/0.4263, allocations: 250.3 kB / 343.3 MB, free: 2.855 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/0.4264, allocations: 7.875 kB / 343.3 MB, free: 2.852 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.962e-05/0.4264, allocations: 19.39 kB / 343.4 MB, free: 2.836 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004988/0.4269, allocations: 206 kB / 343.6 MB, free: 2.66 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.4269, allocations: 3.938 kB / 343.6 MB, free: 2.656 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.888e-05/0.427, allocations: 18.98 kB / 343.6 MB, free: 2.641 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.46e-05/0.427, allocations: 4 kB / 343.6 MB, free: 2.637 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000462/0.4275, allocations: 147.7 kB / 343.7 MB, free: 2.527 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001437/0.4289, allocations: 0.7943 MB / 344.5 MB, free: 1.746 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000782/0.4298, allocations: 207.1 kB / 344.7 MB, free: 1.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.421e-05/0.4298, allocations: 11.98 kB / 344.7 MB, free: 1.559 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003667/0.4302, allocations: 144.6 kB / 344.9 MB, free: 1.422 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 3.191e-06/0.4302, allocations: 0 / 344.9 MB, free: 1.422 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008204/0.431, allocations: 254.4 kB / 345.1 MB, free: 1.211 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.151e-05/0.4311, allocations: 81.11 kB / 345.2 MB, free: 1.113 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002886/0.4314, allocations: 202.4 kB / 345.4 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.638e-05/0.4315, allocations: 29.14 kB / 345.4 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.4316, allocations: 199.8 kB / 345.6 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.008e-05/0.4317, allocations: 45.61 kB / 345.7 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.431e-05/0.4317, allocations: 2.25 kB / 345.7 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.4319, allocations: 318.6 kB / 346 MB, free: 376 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002296/0.4322, allocations: 70.14 kB / 346.1 MB, free: 324 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002777/0.4325, allocations: 140.7 kB / 346.2 MB, free: 172 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002553/0.4327, allocations: 83.98 kB / 346.3 MB, free: 112 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.867e-06/0.4327, allocations: 4 kB / 346.3 MB, free: 108 kB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006876/0.4334, allocations: 249.7 kB / 346.5 MB, free: 15.9 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.4335, allocations: 8 kB / 346.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.4335, allocations: 4 kB / 346.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.4335, allocations: 4 kB / 346.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002479/0.4338, allocations: 39.91 kB / 346.6 MB, free: 15.85 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.4338, allocations: 4 kB / 346.6 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002465/0.4341, allocations: 35.45 kB / 346.6 MB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.82e-05/0.4341, allocations: 15.55 kB / 346.6 MB, free: 15.8 MB / 282.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.0002216/0.4344, allocations: 150.9 kB / 346.8 MB, free: 15.65 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.916e-05/0.4344, allocations: 19.25 kB / 346.8 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003665/0.4348, allocations: 130.7 kB / 346.9 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.54e-06/0.4348, allocations: 7.984 kB / 346.9 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.4349, allocations: 0 / 346.9 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.415e-06/0.4349, allocations: 4 kB / 346.9 MB, free: 15.51 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000881/0.4358, allocations: 484.4 kB / 347.4 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.112e-06/0.4358, allocations: 0 / 347.4 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001692/0.436, allocations: 19.98 kB / 347.4 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.116e-06/0.436, allocations: 0 / 347.4 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.616e-05/0.436, allocations: 11.23 kB / 347.4 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.613e-06/0.4361, allocations: 7.938 kB / 347.4 MB, free: 15.01 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.116e-06/0.4361, allocations: 0 / 347.4 MB, free: 15.01 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005973/0.4367, allocations: 304.7 kB / 347.7 MB, free: 14.72 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/0.4368, allocations: 107.8 kB / 347.8 MB, free: 14.6 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.507e-05/0.4369, allocations: 7.984 kB / 347.9 MB, free: 14.59 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002339/0.4371, allocations: 19.73 kB / 347.9 MB, free: 14.58 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.395e-05/0.4372, allocations: 19.53 kB / 347.9 MB, free: 14.56 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.9e-05/0.4373, allocations: 11.98 kB / 347.9 MB, free: 14.55 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001887/0.4375, allocations: 153.1 kB / 348.1 MB, free: 14.42 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.72e-07/0.4375, allocations: 4 kB / 348.1 MB, free: 14.42 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000453/0.438, allocations: 35.62 kB / 348.1 MB, free: 14.39 MB / 282.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.0002092/0.4382, allocations: 130.5 kB / 348.2 MB, free: 14.25 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005645/0.4388, allocations: 180 kB / 348.4 MB, free: 14.11 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.077e-06/0.4388, allocations: 0 / 348.4 MB, free: 14.11 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002661/0.4391, allocations: 80.83 kB / 348.5 MB, free: 14.05 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000343/0.4394, allocations: 23.05 kB / 348.5 MB, free: 14.04 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009805/0.4404, allocations: 447.4 kB / 348.9 MB, free: 13.6 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004508/0.4409, allocations: 0.7403 MB / 349.7 MB, free: 12.83 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.802e-05/0.441, allocations: 23.42 kB / 349.7 MB, free: 12.8 MB / 282.7 MB Notification: Performance of SimCode: time 1.471e-06/0.441, allocations: 0 / 349.7 MB, free: 12.8 MB / 282.7 MB Notification: Performance of Templates: time 0.005648/0.4467, allocations: 2.368 MB / 352.1 MB, free: 10.46 MB / 282.7 MB