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: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_1_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.702/1.702, allocations: 171.2 MB / 186.1 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005826/0.0005826, allocations: 8 kB / 233.3 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.082/0.08263, allocations: 38.77 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3416/0.4243, allocations: 67.33 MB / 339.4 MB, free: 5.582 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.4246, allocations: 65.84 kB / 339.5 MB, free: 5.551 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01276/0.4374, allocations: 2.678 MB / 342.2 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.4374, allocations: 0 / 342.2 MB, free: 3.242 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.005e-05/0.4375, allocations: 4 kB / 342.2 MB, free: 3.238 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.001123/0.4386, allocations: 0.497 MB / 342.7 MB, free: 2.699 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.4387, allocations: 12.03 kB / 342.7 MB, free: 2.688 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.75e-05/0.4388, allocations: 48.61 kB / 342.7 MB, free: 2.637 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.723e-05/0.4388, allocations: 26.97 kB / 342.8 MB, free: 2.613 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003717/0.4392, allocations: 230.3 kB / 343 MB, free: 2.355 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.787e-05/0.4393, allocations: 15.36 kB / 343 MB, free: 2.344 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.104e-05/0.4393, allocations: 13.5 kB / 343 MB, free: 2.336 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005548/0.4399, allocations: 206.5 kB / 343.2 MB, free: 2.156 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.4399, allocations: 0 / 343.2 MB, free: 2.156 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.56e-05/0.44, allocations: 6.125 kB / 343.2 MB, free: 2.156 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.812e-05/0.44, allocations: 8 kB / 343.2 MB, free: 2.148 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005407/0.4405, allocations: 142.8 kB / 343.4 MB, free: 2.039 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001705/0.4423, allocations: 0.7959 MB / 344.2 MB, free: 1.258 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005064/0.4428, allocations: 162.8 kB / 344.3 MB, free: 1.113 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.597e-05/0.4429, allocations: 7.375 kB / 344.3 MB, free: 1.109 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003962/0.4433, allocations: 146.6 kB / 344.5 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 5.3e-06/0.4433, allocations: 112 / 344.5 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009533/0.4443, allocations: 259 kB / 344.7 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.315e-05/0.4444, allocations: 85.11 kB / 344.8 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002746/0.4447, allocations: 185.5 kB / 345 MB, free: 496 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.642e-05/0.4447, allocations: 33.14 kB / 345 MB, free: 460 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.4449, allocations: 143.7 kB / 345.2 MB, free: 340 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.221e-05/0.4449, allocations: 46.88 kB / 345.2 MB, free: 300 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.579e-05/0.445, allocations: 3.75 kB / 345.2 MB, free: 300 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.4451, allocations: 329.6 kB / 345.5 MB, free: 15.97 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002654/0.4454, allocations: 73.58 kB / 345.6 MB, free: 15.91 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003041/0.4457, allocations: 124.5 kB / 345.7 MB, free: 15.79 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002883/0.446, allocations: 81.14 kB / 345.8 MB, free: 15.73 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.4461, allocations: 0 / 345.8 MB, free: 15.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000755/0.4468, allocations: 240.2 kB / 346.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.4469, allocations: 8 kB / 346.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.4469, allocations: 0 / 346.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.4469, allocations: 4 kB / 346.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000314/0.4473, allocations: 47.47 kB / 346.1 MB, free: 15.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.4473, allocations: 4 kB / 346.1 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002895/0.4476, allocations: 39.31 kB / 346.2 MB, free: 15.44 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.084e-05/0.4476, allocations: 11.95 kB / 346.2 MB, free: 15.43 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.0002113/0.4479, allocations: 140.3 kB / 346.3 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.429e-05/0.4479, allocations: 19.81 kB / 346.3 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008104/0.4487, allocations: 221.9 kB / 346.5 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.248e-06/0.4488, allocations: 4 kB / 346.5 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.4488, allocations: 96 / 346.5 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.4488, allocations: 3.938 kB / 346.5 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004212/0.4492, allocations: 270.5 kB / 346.8 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.4493, allocations: 0 / 346.8 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002301/0.4495, allocations: 31.23 kB / 346.8 MB, free: 14.78 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.146e-05/0.4495, allocations: 4 kB / 346.8 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.428e-05/0.4496, allocations: 4 kB / 346.8 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.374e-06/0.4496, allocations: 0 / 346.8 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.4496, allocations: 3.938 kB / 346.9 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006676/0.4503, allocations: 241.3 kB / 347.1 MB, free: 14.54 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001485/0.4504, allocations: 115.2 kB / 347.2 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.875e-05/0.4505, allocations: 0 / 347.2 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002498/0.4507, allocations: 23.36 kB / 347.2 MB, free: 14.4 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.855e-05/0.4508, allocations: 19.91 kB / 347.2 MB, free: 14.38 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.707e-05/0.4509, allocations: 7.375 kB / 347.2 MB, free: 14.38 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002033/0.4511, allocations: 153.7 kB / 347.4 MB, free: 14.24 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.4511, allocations: 0 / 347.4 MB, free: 14.24 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003662/0.4515, allocations: 35.77 kB / 347.4 MB, free: 14.21 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.001147/0.4526, allocations: 0.8519 MB / 348.3 MB, free: 13.37 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006474/0.4533, allocations: 178.1 kB / 348.5 MB, free: 13.23 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.4533, allocations: 0 / 348.5 MB, free: 13.23 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003077/0.4537, allocations: 82.33 kB / 348.5 MB, free: 13.17 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004688/0.4541, allocations: 38.59 kB / 348.6 MB, free: 13.14 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003319/0.4575, allocations: 2.226 MB / 350.8 MB, free: 10.99 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004375/0.458, allocations: 0.7477 MB / 351.6 MB, free: 10.21 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002491/0.4582, allocations: 37.5 kB / 351.6 MB, free: 10.18 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.4584, allocations: 62.36 kB / 351.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of SimCode: time 9.21e-07/0.4584, allocations: 0 / 351.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02962/0.488, allocations: 3.601 MB / 355.3 MB, free: 6.617 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003126/0.4884, allocations: 173 kB / 355.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.556/3.045, allocations: 4 kB / 355.4 MB, free: 6.367 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat