Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.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.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadModel(Modelica): time 1.879/1.879, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00058/0.0005808, allocations: 12 kB / 233.8 MB, free: 2.406 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1213, allocations: 38.77 MB / 272.6 MB, free: 11.56 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3767/0.4981, allocations: 67.32 MB / 339.9 MB, free: 6.074 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002163/0.4984, allocations: 70.41 kB / 340 MB, free: 6.039 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01747/0.5159, allocations: 2.683 MB / 342.7 MB, free: 3.723 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5159, allocations: 3.938 kB / 342.7 MB, free: 3.719 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.506e-05/0.516, allocations: 8 kB / 342.7 MB, free: 3.711 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001151/0.5171, allocations: 0.4907 MB / 343.2 MB, free: 3.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.5172, allocations: 8.031 kB / 343.2 MB, free: 3.172 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.576e-05/0.5173, allocations: 23.72 kB / 343.2 MB, free: 3.148 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004111/0.5177, allocations: 236.6 kB / 343.4 MB, free: 2.887 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.989e-05/0.5178, allocations: 15.73 kB / 343.5 MB, free: 2.875 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.243e-05/0.5178, allocations: 15.38 kB / 343.5 MB, free: 2.863 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000711/0.5185, allocations: 195 kB / 343.7 MB, free: 2.695 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.5186, allocations: 0 / 343.7 MB, free: 2.695 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.634e-05/0.5186, allocations: 7.5 kB / 343.7 MB, free: 2.691 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.92e-05/0.5187, allocations: 11.75 kB / 343.7 MB, free: 2.684 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006795/0.5194, allocations: 140.7 kB / 343.8 MB, free: 2.578 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002159/0.5216, allocations: 0.7951 MB / 344.6 MB, free: 1.793 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006464/0.5222, allocations: 157.1 kB / 344.8 MB, free: 1.656 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.161e-05/0.5223, allocations: 12.12 kB / 344.8 MB, free: 1.645 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005039/0.5229, allocations: 150.2 kB / 344.9 MB, free: 1.504 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 3.226e-06/0.5229, allocations: 0 / 344.9 MB, free: 1.504 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.001214/0.5241, allocations: 261.7 kB / 345.2 MB, free: 1.289 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.842e-05/0.5242, allocations: 77.11 kB / 345.3 MB, free: 1.195 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003884/0.5246, allocations: 209.7 kB / 345.5 MB, free: 1.004 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.676e-05/0.5247, allocations: 36.27 kB / 345.5 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.5248, allocations: 143.3 kB / 345.6 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.598e-05/0.5249, allocations: 47.27 kB / 345.7 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.949e-05/0.525, allocations: 4 kB / 345.7 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.5252, allocations: 333.2 kB / 346 MB, free: 492 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003452/0.5255, allocations: 69.27 kB / 346.1 MB, free: 440 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004/0.5259, allocations: 123 kB / 346.2 MB, free: 312 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003682/0.5263, allocations: 84.81 kB / 346.3 MB, free: 252 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/0.5264, allocations: 0 / 346.3 MB, free: 252 kB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0009496/0.5273, allocations: 245.1 kB / 346.5 MB, free: 44 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/0.5274, allocations: 4 kB / 346.5 MB, free: 40 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.5274, allocations: 0 / 346.5 MB, free: 40 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.5274, allocations: 4.188 kB / 346.5 MB, free: 36 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003989/0.5278, allocations: 43.95 kB / 346.6 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.187e-05/0.5279, allocations: 7.938 kB / 346.6 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003613/0.5283, allocations: 31.72 kB / 346.6 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.539e-05/0.5283, allocations: 16.02 kB / 346.6 MB, free: 15.95 MB / 282.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: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.000263/0.5286, allocations: 136.2 kB / 346.8 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.86e-05/0.5287, allocations: 23.81 kB / 346.8 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009782/0.5297, allocations: 223.5 kB / 347 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/0.5297, allocations: 4 kB / 347 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.5297, allocations: 3.938 kB / 347 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.5297, allocations: 0 / 347 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005413/0.5303, allocations: 273.6 kB / 347.3 MB, free: 15.33 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.669e-06/0.5303, allocations: 3.984 kB / 347.3 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002768/0.5306, allocations: 23.98 kB / 347.3 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.905e-06/0.5307, allocations: 0 / 347.3 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.013e-05/0.5307, allocations: 7.375 kB / 347.3 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.5307, allocations: 0 / 347.3 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.5307, allocations: 0 / 347.3 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008884/0.5316, allocations: 232 kB / 347.5 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001939/0.5318, allocations: 111.9 kB / 347.6 MB, free: 14.96 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.19e-05/0.5319, allocations: 3 kB / 347.7 MB, free: 14.96 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003404/0.5323, allocations: 27.97 kB / 347.7 MB, free: 14.93 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.5324, allocations: 19.72 kB / 347.7 MB, free: 14.92 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.323e-05/0.5325, allocations: 4 kB / 347.7 MB, free: 14.91 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002736/0.5328, allocations: 146.3 kB / 347.8 MB, free: 14.79 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.5328, allocations: 0 / 347.8 MB, free: 14.79 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006917/0.5335, allocations: 35.38 kB / 347.9 MB, free: 14.76 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: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulsStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulsStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002495/0.5337, allocations: 103.2 kB / 348 MB, free: 14.65 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009059/0.5347, allocations: 182.2 kB / 348.2 MB, free: 14.51 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.5347, allocations: 0 / 348.2 MB, free: 14.51 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004433/0.5352, allocations: 87.02 kB / 348.2 MB, free: 14.44 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006207/0.5358, allocations: 43.33 kB / 348.3 MB, free: 14.41 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.5372, allocations: 430.8 kB / 348.7 MB, free: 13.99 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005541/0.5378, allocations: 0.7438 MB / 349.5 MB, free: 13.22 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000316/0.5382, allocations: 37.52 kB / 349.5 MB, free: 13.18 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.5383, allocations: 15.44 kB / 349.5 MB, free: 13.17 MB / 282.7 MB Notification: Performance of SimCode: time 1.212e-06/0.5383, allocations: 8 kB / 349.5 MB, free: 13.16 MB / 282.7 MB Notification: Performance of Templates: time 0.01698/0.5553, allocations: 1.804 MB / 351.3 MB, free: 11.38 MB / 282.7 MB