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.RealNetwork1.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.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadModel(Modelica): time 1.951/1.951, allocations: 194.8 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003565, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09828/0.09866, allocations: 44.5 MB / 309 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5228/0.6215, allocations: 72.62 MB / 381.6 MB, free: 14.93 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.6219, allocations: 72.64 kB / 381.6 MB, free: 14.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01245/0.6343, allocations: 2.667 MB / 384.3 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.6344, allocations: 5.719 kB / 384.3 MB, free: 14.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.924e-05/0.6344, allocations: 6.906 kB / 384.3 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009557/0.6354, allocations: 494 kB / 384.8 MB, free: 14.04 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.6354, allocations: 13.19 kB / 384.8 MB, free: 14.03 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.17e-05/0.6355, allocations: 25.62 kB / 384.8 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002911/0.6358, allocations: 230.5 kB / 385.1 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.787e-05/0.6358, allocations: 13.16 kB / 385.1 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.873e-05/0.6359, allocations: 13 kB / 385.1 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005046/0.6364, allocations: 203.3 kB / 385.3 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.6364, allocations: 7.922 kB / 385.3 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.588e-05/0.6365, allocations: 7.188 kB / 385.3 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.53e-05/0.6365, allocations: 5.5 kB / 385.3 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004881/0.637, allocations: 142.3 kB / 385.5 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.6384, allocations: 0.7883 MB / 386.2 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004611/0.6389, allocations: 161.4 kB / 386.4 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.685e-05/0.639, allocations: 9.109 kB / 386.4 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003465/0.6393, allocations: 146.6 kB / 386.6 MB, free: 13.05 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 3.386e-06/0.6394, allocations: 0 / 386.6 MB, free: 13.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009091/0.6403, allocations: 258.4 kB / 386.8 MB, free: 13 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.6403, allocations: 90.42 kB / 386.9 MB, free: 12.9 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002417/0.6406, allocations: 202.5 kB / 387.1 MB, free: 12.8 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.862e-05/0.6406, allocations: 28.39 kB / 387.1 MB, free: 12.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.635e-05/0.6407, allocations: 200.8 kB / 387.3 MB, free: 12.6 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.657e-05/0.6408, allocations: 40.25 kB / 387.4 MB, free: 12.57 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.5e-05/0.6408, allocations: 7.562 kB / 387.4 MB, free: 12.57 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.446e-05/0.6409, allocations: 319.2 kB / 387.7 MB, free: 12.26 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002487/0.6411, allocations: 71.31 kB / 387.7 MB, free: 12.25 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002753/0.6414, allocations: 132 kB / 387.9 MB, free: 12.19 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002745/0.6417, allocations: 84 kB / 388 MB, free: 12.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.6417, allocations: 1.375 kB / 388 MB, free: 12.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006617/0.6424, allocations: 231.9 kB / 388.2 MB, free: 12.13 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.6425, allocations: 5.922 kB / 388.2 MB, free: 12.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.6425, allocations: 5.844 kB / 388.2 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.6425, allocations: 8.078 kB / 388.2 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000301/0.6428, allocations: 36.31 kB / 388.2 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.577e-06/0.6428, allocations: 1.625 kB / 388.2 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000288/0.6431, allocations: 45.97 kB / 388.3 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.641e-05/0.6432, allocations: 6.594 kB / 388.3 MB, free: 12.11 MB / 314.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.0001669/0.6434, allocations: 138.4 kB / 388.4 MB, free: 11.99 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.01e-05/0.6434, allocations: 15.75 kB / 388.4 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000715/0.6441, allocations: 221.3 kB / 388.7 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.6442, allocations: 2.562 kB / 388.7 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.6442, allocations: 9.297 kB / 388.7 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.6442, allocations: 6.188 kB / 388.7 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000337/0.6445, allocations: 271.5 kB / 388.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.6446, allocations: 0 / 388.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000202/0.6448, allocations: 22.45 kB / 389 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.6448, allocations: 5.344 kB / 389 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.158e-05/0.6448, allocations: 7.625 kB / 389 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.696e-06/0.6448, allocations: 1.312 kB / 389 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.6448, allocations: 1.406 kB / 389 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005854/0.6454, allocations: 227.1 kB / 389.2 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.339e-05/0.6455, allocations: 96.66 kB / 389.3 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.566e-05/0.6456, allocations: 4.469 kB / 389.3 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.6458, allocations: 21.61 kB / 389.3 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.578e-05/0.6459, allocations: 22.55 kB / 389.3 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.428e-05/0.6459, allocations: 8.766 kB / 389.3 MB, free: 11.52 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001523/0.6461, allocations: 147.4 kB / 389.5 MB, free: 11.45 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6461, allocations: 0 / 389.5 MB, free: 11.45 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003617/0.6465, allocations: 37.16 kB / 389.5 MB, free: 11.44 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: 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.0001634/0.6467, allocations: 107.1 kB / 389.6 MB, free: 11.35 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005953/0.6473, allocations: 170.4 kB / 389.8 MB, free: 11.34 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.6473, allocations: 3.938 kB / 389.8 MB, free: 11.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00029/0.6476, allocations: 90.56 kB / 389.9 MB, free: 11.34 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000433/0.648, allocations: 35.38 kB / 389.9 MB, free: 11.33 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009129/0.649, allocations: 459.4 kB / 390.4 MB, free: 11.05 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/0.6492, allocations: 0.737 MB / 391.1 MB, free: 10.35 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.953e-05/0.6493, allocations: 27.81 kB / 391.1 MB, free: 10.34 MB / 314.7 MB Notification: Performance of SimCode: time 8.62e-07/0.6493, allocations: 0 / 391.1 MB, free: 10.34 MB / 314.7 MB Notification: Performance of Templates: time 0.005893/0.6552, allocations: 2.369 MB / 393.5 MB, free: 10.17 MB / 314.7 MB