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.RealNetwork1.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.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadModel(Modelica): time 1.587/1.587, allocations: 171.2 MB / 184.2 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.383e-05/2.39e-05, allocations: 4 kB / 228.8 MB, free: 15.42 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2043/0.2043, allocations: 38.77 MB / 267.6 MB, free: 9.332 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1008/0.3052, allocations: 67.24 MB / 334.8 MB, free: 5.996 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/0.3054, allocations: 63.97 kB / 334.9 MB, free: 5.934 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01122/0.3166, allocations: 2.659 MB / 337.5 MB, free: 3.262 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.646e-06/0.3167, allocations: 4 kB / 337.5 MB, free: 3.258 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.121e-05/0.3167, allocations: 8 kB / 337.5 MB, free: 3.25 MB / 282.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.0008176/0.3175, allocations: 473.3 kB / 338 MB, free: 2.738 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.3176, allocations: 8.031 kB / 338 MB, free: 2.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.053e-05/0.3177, allocations: 23.72 kB / 338 MB, free: 2.707 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003394/0.318, allocations: 238.4 kB / 338.3 MB, free: 2.434 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.3181, allocations: 8.281 kB / 338.3 MB, free: 2.426 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.096e-05/0.3181, allocations: 19.95 kB / 338.3 MB, free: 2.406 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004203/0.3186, allocations: 186.9 kB / 338.5 MB, free: 2.207 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.3186, allocations: 0 / 338.5 MB, free: 2.207 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.369e-05/0.3186, allocations: 4 kB / 338.5 MB, free: 2.203 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/0.3187, allocations: 8 kB / 338.5 MB, free: 2.195 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00031/0.319, allocations: 119.8 kB / 338.6 MB, free: 2.078 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001472/0.3205, allocations: 0.7937 MB / 339.4 MB, free: 1.223 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003686/0.3209, allocations: 149.1 kB / 339.6 MB, free: 1.059 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.321, allocations: 57.83 kB / 339.6 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.858e-05/0.3211, allocations: 8 kB / 339.6 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002721/0.3214, allocations: 137.1 kB / 339.8 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 2.924e-06/0.3214, allocations: 0 / 339.8 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004434/0.3218, allocations: 177.3 kB / 339.9 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.265e-05/0.3219, allocations: 77.11 kB / 340 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002484/0.3222, allocations: 182.1 kB / 340.2 MB, free: 384 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.455e-05/0.3222, allocations: 29.7 kB / 340.2 MB, free: 348 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.3224, allocations: 206.5 kB / 340.4 MB, free: 140 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.274e-05/0.3225, allocations: 35.45 kB / 340.4 MB, free: 104 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.852e-05/0.3225, allocations: 8 kB / 340.4 MB, free: 96 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.3227, allocations: 322.8 kB / 340.8 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.3229, allocations: 55.98 kB / 340.8 MB, free: 15.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.3231, allocations: 110.8 kB / 340.9 MB, free: 15.58 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001701/0.3233, allocations: 71.89 kB / 341 MB, free: 15.51 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3233, allocations: 0 / 341 MB, free: 15.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004769/0.3238, allocations: 205.3 kB / 341.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.3238, allocations: 4 kB / 341.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.165e-06/0.3238, allocations: 4 kB / 341.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.3238, allocations: 4 kB / 341.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002521/0.3241, allocations: 44.11 kB / 341.3 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.487e-06/0.3241, allocations: 0 / 341.3 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/0.3244, allocations: 39.81 kB / 341.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.533e-05/0.3244, allocations: 8.109 kB / 341.3 MB, free: 15.2 MB / 298.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 () * 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.0001277/0.3246, allocations: 132.7 kB / 341.4 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.691e-05/0.3246, allocations: 15.81 kB / 341.4 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004882/0.3251, allocations: 195.1 kB / 341.6 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.3251, allocations: 4 kB / 341.6 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.3252, allocations: 0 / 341.6 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.913e-06/0.3252, allocations: 0 / 341.6 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003741/0.3255, allocations: 273.5 kB / 341.9 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.117e-06/0.3256, allocations: 3.938 kB / 341.9 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001689/0.3257, allocations: 23.98 kB / 341.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.576e-06/0.3258, allocations: 0 / 341.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.3258, allocations: 4 kB / 341.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.065e-05/0.3258, allocations: 11.92 kB / 341.9 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.027e-06/0.3258, allocations: 0 / 341.9 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004178/0.3263, allocations: 209.5 kB / 342.2 MB, free: 14.26 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.3264, allocations: 104.9 kB / 342.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.891e-05/0.3265, allocations: 4 kB / 342.3 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001884/0.3267, allocations: 27.97 kB / 342.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.605e-05/0.3268, allocations: 19.97 kB / 342.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.398e-05/0.3268, allocations: 8 kB / 342.3 MB, free: 14.08 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001799/0.327, allocations: 144.6 kB / 342.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.23e-07/0.327, allocations: 4 kB / 342.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000351/0.3274, allocations: 39.84 kB / 342.5 MB, free: 13.89 MB / 298.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 () * 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.0001782/0.3275, allocations: 108.3 kB / 342.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003878/0.328, allocations: 151.8 kB / 342.8 MB, free: 13.63 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.837e-06/0.328, allocations: 0 / 342.8 MB, free: 13.63 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001861/0.3282, allocations: 72.47 kB / 342.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003345/0.3285, allocations: 40.17 kB / 342.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007087/0.3292, allocations: 296.8 kB / 343.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005312/0.3298, allocations: 0.7438 MB / 343.9 MB, free: 12.42 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.868e-05/0.3299, allocations: 15.44 kB / 343.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of SimCode: time 1.555e-06/0.3299, allocations: 0 / 343.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of Templates: time 0.005378/0.3353, allocations: 2.377 MB / 346.3 MB, free: 10.04 MB / 298.7 MB