Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_2_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.899/1.899, allocations: 194.9 MB / 211.1 MB, free: 7.59 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003511, allocations: 8 kB / 264.1 MB, free: 2.52 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2887, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1319/0.4207, allocations: 72.63 MB / 381.2 MB, free: 3.922 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003241/0.4211, allocations: 67.97 kB / 381.3 MB, free: 3.855 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02077/0.4419, allocations: 2.656 MB / 383.9 MB, free: 1.188 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.4419, allocations: 0 / 383.9 MB, free: 1.188 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.189e-05/0.442, allocations: 11.94 kB / 383.9 MB, free: 1.176 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.00164/0.4437, allocations: 0.4999 MB / 384.4 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.27e-05/0.4437, allocations: 8.031 kB / 384.4 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001209/0.4439, allocations: 46.55 kB / 384.5 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.444, allocations: 27.72 kB / 384.5 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005268/0.4446, allocations: 226.7 kB / 384.7 MB, free: 276 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.12e-05/0.4446, allocations: 20.2 kB / 384.7 MB, free: 256 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.36e-05/0.4447, allocations: 12 kB / 384.8 MB, free: 244 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009453/0.4457, allocations: 198.9 kB / 384.9 MB, free: 28 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.391e-05/0.4457, allocations: 7.984 kB / 385 MB, free: 20 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.117e-05/0.4458, allocations: 4 kB / 385 MB, free: 16 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.345e-05/0.4459, allocations: 8 kB / 385 MB, free: 8 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009501/0.4468, allocations: 143.8 kB / 385.1 MB, free: 15.87 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002834/0.4497, allocations: 0.7893 MB / 385.9 MB, free: 15.02 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008542/0.4506, allocations: 157.1 kB / 386.1 MB, free: 14.85 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.962e-05/0.4507, allocations: 7.984 kB / 386.1 MB, free: 14.84 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006542/0.4514, allocations: 158.5 kB / 386.2 MB, free: 14.67 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 7.825e-06/0.4514, allocations: 3.984 kB / 386.2 MB, free: 14.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.001619/0.4531, allocations: 253.4 kB / 386.5 MB, free: 14.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.323e-05/0.4532, allocations: 81.11 kB / 386.5 MB, free: 14.31 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004167/0.4536, allocations: 179.4 kB / 386.7 MB, free: 14.13 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.583e-05/0.4537, allocations: 29.7 kB / 386.7 MB, free: 14.1 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001894/0.4539, allocations: 144.1 kB / 386.9 MB, free: 13.95 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.4541, allocations: 43.44 kB / 386.9 MB, free: 13.91 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.4541, allocations: 4 kB / 386.9 MB, free: 13.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002145/0.4543, allocations: 326.8 kB / 387.3 MB, free: 13.58 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000335/0.4547, allocations: 71.95 kB / 387.3 MB, free: 13.51 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003225/0.455, allocations: 133 kB / 387.5 MB, free: 13.36 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003002/0.4553, allocations: 84.53 kB / 387.5 MB, free: 13.27 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.4554, allocations: 4 kB / 387.5 MB, free: 13.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007744/0.4561, allocations: 245.3 kB / 387.8 MB, free: 13.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/0.4562, allocations: 10.5 kB / 387.8 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.4562, allocations: 0 / 387.8 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.445e-05/0.4562, allocations: 7.953 kB / 387.8 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003099/0.4566, allocations: 43.91 kB / 387.8 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.988e-06/0.4566, allocations: 0 / 387.8 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002917/0.4569, allocations: 39.89 kB / 387.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.511e-05/0.457, allocations: 12 kB / 387.9 MB, free: 12.91 MB / 330.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.0002267/0.4572, allocations: 137.8 kB / 388 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.2e-05/0.4573, allocations: 19.72 kB / 388 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007781/0.458, allocations: 218.9 kB / 388.3 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.4581, allocations: 0 / 388.3 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.4581, allocations: 7.953 kB / 388.3 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.4581, allocations: 3.984 kB / 388.3 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000427/0.4585, allocations: 265.5 kB / 388.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.4586, allocations: 0 / 388.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002315/0.4588, allocations: 27.92 kB / 388.6 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.438e-06/0.4588, allocations: 3.984 kB / 388.6 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.4589, allocations: 4 kB / 388.6 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/0.4589, allocations: 4 kB / 388.6 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.103e-06/0.4589, allocations: 0 / 388.6 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006735/0.4596, allocations: 239.3 kB / 388.8 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.026e-05/0.4597, allocations: 92.86 kB / 388.9 MB, free: 11.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.466e-05/0.4597, allocations: 8 kB / 388.9 MB, free: 11.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.46, allocations: 23.97 kB / 388.9 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.124e-05/0.4601, allocations: 23.86 kB / 388.9 MB, free: 11.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.488e-05/0.4601, allocations: 4 kB / 389 MB, free: 11.74 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001858/0.4603, allocations: 151.4 kB / 389.1 MB, free: 11.59 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4603, allocations: 0 / 389.1 MB, free: 11.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003645/0.4607, allocations: 32 kB / 389.1 MB, free: 11.56 MB / 330.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.001102/0.4618, allocations: 0.8573 MB / 390 MB, free: 10.67 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006687/0.4625, allocations: 172 kB / 390.2 MB, free: 10.5 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4625, allocations: 0 / 390.2 MB, free: 10.5 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003091/0.4628, allocations: 87.89 kB / 390.2 MB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004619/0.4633, allocations: 40.14 kB / 390.3 MB, free: 10.38 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00334/0.4667, allocations: 2.224 MB / 392.5 MB, free: 8.059 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004109/0.4671, allocations: 0.7438 MB / 393.3 MB, free: 7.289 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002417/0.4674, allocations: 37.5 kB / 393.3 MB, free: 7.25 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.4676, allocations: 67.41 kB / 393.4 MB, free: 7.184 MB / 330.7 MB Notification: Performance of SimCode: time 9.51e-07/0.4676, allocations: 0 / 393.4 MB, free: 7.184 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02849/0.4961, allocations: 3.595 MB / 396.9 MB, free: 3.629 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004643/0.4966, allocations: 166.6 kB / 397.1 MB, free: 3.387 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.837/3.334, allocations: 0 / 397.1 MB, free: 3.387 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat