Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.586/1.586, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003389/0.000339, allocations: 8 kB / 233.3 MB, free: 2.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08051/0.08087, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3429/0.4238, allocations: 67.32 MB / 339.4 MB, free: 6.086 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.4241, allocations: 68.03 kB / 339.5 MB, free: 6.051 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01201/0.4361, allocations: 2.682 MB / 342.2 MB, free: 3.734 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.225e-06/0.4362, allocations: 0 / 342.2 MB, free: 3.734 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.988e-05/0.4362, allocations: 4 kB / 342.2 MB, free: 3.73 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.001027/0.4373, allocations: 0.4984 MB / 342.7 MB, free: 3.191 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.4373, allocations: 15.97 kB / 342.7 MB, free: 3.176 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.87e-05/0.4374, allocations: 49.05 kB / 342.7 MB, free: 3.129 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.118e-05/0.4375, allocations: 23.72 kB / 342.8 MB, free: 3.105 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003374/0.4378, allocations: 237 kB / 343 MB, free: 2.84 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.398e-05/0.4379, allocations: 14.98 kB / 343 MB, free: 2.832 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.723e-05/0.4379, allocations: 15.5 kB / 343 MB, free: 2.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005005/0.4384, allocations: 193.9 kB / 343.2 MB, free: 2.652 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.4385, allocations: 11.94 kB / 343.2 MB, free: 2.641 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.303e-05/0.4385, allocations: 3.25 kB / 343.2 MB, free: 2.641 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.483e-05/0.4385, allocations: 7.562 kB / 343.2 MB, free: 2.637 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005048/0.439, allocations: 139.8 kB / 343.4 MB, free: 2.531 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.4406, allocations: 0.7897 MB / 344.2 MB, free: 1.754 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004833/0.4411, allocations: 163.3 kB / 344.3 MB, free: 1.609 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.069e-05/0.4412, allocations: 10.98 kB / 344.3 MB, free: 1.602 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003876/0.4416, allocations: 137.5 kB / 344.5 MB, free: 1.469 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 5.771e-06/0.4416, allocations: 112 / 344.5 MB, free: 1.469 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008873/0.4425, allocations: 267.8 kB / 344.7 MB, free: 1.25 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.21e-05/0.4426, allocations: 81.11 kB / 344.8 MB, free: 1.152 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002485/0.4428, allocations: 195.5 kB / 345 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/0.4429, allocations: 29.27 kB / 345 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.443, allocations: 200.6 kB / 345.2 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.153e-05/0.4431, allocations: 47 kB / 345.3 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.428e-05/0.4431, allocations: 3.188 kB / 345.3 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.4433, allocations: 322.8 kB / 345.6 MB, free: 412 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002463/0.4435, allocations: 62.64 kB / 345.6 MB, free: 364 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003023/0.4438, allocations: 124 kB / 345.8 MB, free: 236 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002786/0.4441, allocations: 88.2 kB / 345.8 MB, free: 172 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.4442, allocations: 0 / 345.8 MB, free: 172 kB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006931/0.4449, allocations: 228.2 kB / 346.1 MB, free: 15.98 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.4449, allocations: 8 kB / 346.1 MB, free: 15.97 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.4449, allocations: 96 / 346.1 MB, free: 15.97 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.4449, allocations: 7.938 kB / 346.1 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002963/0.4453, allocations: 39.86 kB / 346.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.4453, allocations: 4 kB / 346.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002761/0.4456, allocations: 39.31 kB / 346.2 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.755e-05/0.4456, allocations: 15.77 kB / 346.2 MB, free: 15.88 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.0001861/0.4458, allocations: 139.9 kB / 346.3 MB, free: 15.74 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.355e-05/0.4459, allocations: 19.81 kB / 346.3 MB, free: 15.72 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000696/0.4466, allocations: 220.5 kB / 346.6 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.4466, allocations: 4 kB / 346.6 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.4466, allocations: 0 / 346.6 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.4466, allocations: 0 / 346.6 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003718/0.447, allocations: 273.2 kB / 346.8 MB, free: 15.26 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.447, allocations: 0 / 346.8 MB, free: 15.26 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002049/0.4472, allocations: 27.98 kB / 346.9 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.4473, allocations: 0 / 346.9 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.4473, allocations: 4 kB / 346.9 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.4473, allocations: 4 kB / 346.9 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4473, allocations: 3.938 kB / 346.9 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006389/0.448, allocations: 244.3 kB / 347.1 MB, free: 14.99 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/0.4481, allocations: 104.2 kB / 347.2 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.024e-05/0.4481, allocations: 7.047 kB / 347.2 MB, free: 14.87 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.4484, allocations: 23.36 kB / 347.2 MB, free: 14.85 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.865e-05/0.4485, allocations: 15.97 kB / 347.3 MB, free: 14.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.821e-05/0.4485, allocations: 4 kB / 347.3 MB, free: 14.83 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001812/0.4487, allocations: 155.7 kB / 347.4 MB, free: 14.7 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4487, allocations: 0 / 347.4 MB, free: 14.7 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00037/0.4491, allocations: 42.42 kB / 347.4 MB, free: 14.66 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.001007/0.4501, allocations: 0.8472 MB / 348.3 MB, free: 13.83 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006155/0.4508, allocations: 186.6 kB / 348.5 MB, free: 13.68 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4508, allocations: 0 / 348.5 MB, free: 13.68 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002979/0.4511, allocations: 85.08 kB / 348.6 MB, free: 13.62 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004227/0.4515, allocations: 45.34 kB / 348.6 MB, free: 13.58 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0031/0.4546, allocations: 2.26 MB / 350.9 MB, free: 11.39 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003944/0.4551, allocations: 0.7477 MB / 351.6 MB, free: 10.62 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001576/0.4552, allocations: 66.34 kB / 351.7 MB, free: 10.59 MB / 282.7 MB Notification: Performance of SimCode: time 9.82e-07/0.4553, allocations: 0 / 351.7 MB, free: 10.59 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.32/2.775, allocations: 3.123 MB / 354.8 MB, free: 7.504 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat