Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Sources.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.FluxTubes.Sources,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.292/2.292, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.46e-05, allocations: 4 kB / 309.8 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3816/0.3817, allocations: 54.85 MB / 364.6 MB, free: 5.559 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1478/0.5296, allocations: 82.85 MB / 447.5 MB, free: 13.62 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/0.5299, allocations: 63.97 kB / 447.5 MB, free: 13.56 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03094/0.5608, allocations: 6.87 MB / 454.4 MB, free: 6.699 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.5609, allocations: 3.938 kB / 454.4 MB, free: 6.695 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.695e-05/0.5609, allocations: 8 kB / 454.4 MB, free: 6.688 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001433/0.5623, allocations: 0.5958 MB / 455 MB, free: 6.047 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.5624, allocations: 12.03 kB / 455 MB, free: 6.035 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001097/0.5625, allocations: 70.53 kB / 455.1 MB, free: 5.957 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.5626, allocations: 43.42 kB / 455.1 MB, free: 5.914 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004678/0.5631, allocations: 272.3 kB / 455.4 MB, free: 5.605 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.708e-05/0.5632, allocations: 24.78 kB / 455.4 MB, free: 5.578 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.913e-05/0.5633, allocations: 35.92 kB / 455.5 MB, free: 5.543 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007901/0.5641, allocations: 323.9 kB / 455.8 MB, free: 5.203 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.913e-05/0.5641, allocations: 11.94 kB / 455.8 MB, free: 5.191 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.468e-05/0.5641, allocations: 12 kB / 455.8 MB, free: 5.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.5642, allocations: 8 kB / 455.8 MB, free: 5.172 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006155/0.5648, allocations: 209 kB / 456 MB, free: 4.969 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00269/0.5675, allocations: 1.295 MB / 457.3 MB, free: 3.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005103/0.568, allocations: 170.6 kB / 457.5 MB, free: 3.387 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001327/0.5682, allocations: 55.5 kB / 457.5 MB, free: 3.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.82e-05/0.5682, allocations: 8.031 kB / 457.5 MB, free: 3.312 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.493e-05/0.5683, allocations: 38.56 kB / 457.6 MB, free: 3.266 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 3.046e-06/0.5683, allocations: 0 / 457.6 MB, free: 3.266 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005054/0.5688, allocations: 145.2 kB / 457.7 MB, free: 3.117 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.507e-05/0.5689, allocations: 140.5 kB / 457.9 MB, free: 2.949 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004499/0.5694, allocations: 282.6 kB / 458.1 MB, free: 2.664 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.844e-05/0.5694, allocations: 33.7 kB / 458.2 MB, free: 2.625 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.5696, allocations: 285.9 kB / 458.4 MB, free: 2.344 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.967e-05/0.5697, allocations: 58.36 kB / 458.5 MB, free: 2.289 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.023e-05/0.5697, allocations: 8 kB / 458.5 MB, free: 2.281 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.5699, allocations: 318.8 kB / 458.8 MB, free: 1.961 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001813/0.5701, allocations: 56.56 kB / 458.9 MB, free: 1.902 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002448/0.5703, allocations: 144.2 kB / 459 MB, free: 1.723 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002242/0.5706, allocations: 71.95 kB / 459.1 MB, free: 1.652 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.5706, allocations: 4 kB / 459.1 MB, free: 1.648 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006173/0.5712, allocations: 237.5 kB / 459.3 MB, free: 1.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.5712, allocations: 4 kB / 459.3 MB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.5713, allocations: 7.984 kB / 459.3 MB, free: 1.398 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/0.5713, allocations: 4 kB / 459.3 MB, free: 1.395 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006648/0.572, allocations: 87.83 kB / 459.4 MB, free: 1.309 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.572, allocations: 4 kB / 459.4 MB, free: 1.305 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004786/0.5725, allocations: 51.73 kB / 459.5 MB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.851e-05/0.5725, allocations: 15.95 kB / 459.5 MB, free: 1.238 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * 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.0001059/0.5727, allocations: 120.9 kB / 459.6 MB, free: 1.113 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.5728, allocations: 39.61 kB / 459.6 MB, free: 1.074 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.401e-05/0.5729, allocations: 34.34 kB / 459.7 MB, free: 1.031 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.5729, allocations: 4 kB / 459.7 MB, free: 1.027 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.5729, allocations: 3.938 kB / 459.7 MB, free: 1.023 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.573, allocations: 4 kB / 459.7 MB, free: 1.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001052/0.574, allocations: 0.5837 MB / 460.3 MB, free: 372 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.574, allocations: 0 / 460.3 MB, free: 372 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003724/0.5744, allocations: 52.12 kB / 460.3 MB, free: 320 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.5744, allocations: 0 / 460.3 MB, free: 320 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.978e-05/0.5745, allocations: 4 kB / 460.3 MB, free: 316 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.228e-06/0.5745, allocations: 7.953 kB / 460.3 MB, free: 308 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.5745, allocations: 3.938 kB / 460.3 MB, free: 304 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004981/0.575, allocations: 418.5 kB / 460.8 MB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.5751, allocations: 108.7 kB / 460.9 MB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.901e-05/0.5752, allocations: 11.98 kB / 460.9 MB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004107/0.5756, allocations: 23.94 kB / 460.9 MB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.085e-05/0.5757, allocations: 19.92 kB / 460.9 MB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/0.5758, allocations: 4 kB / 460.9 MB, free: 15.64 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003381/0.5761, allocations: 230.2 kB / 461.1 MB, free: 15.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5761, allocations: 0 / 461.1 MB, free: 15.41 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005341/0.5767, allocations: 71.78 kB / 461.2 MB, free: 15.34 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 Backend phase and start with SimCode phase: time 0.0009325/0.5776, allocations: 1.366 MB / 462.6 MB, free: 13.91 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004397/0.5781, allocations: 143.8 kB / 462.7 MB, free: 13.77 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.5781, allocations: 0 / 462.7 MB, free: 13.77 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001794/0.5783, allocations: 59.86 kB / 462.8 MB, free: 13.71 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003593/0.5786, allocations: 18.03 kB / 462.8 MB, free: 13.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001391/0.5801, allocations: 457.6 kB / 463.2 MB, free: 13.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.5805, allocations: 0.7798 MB / 464 MB, free: 12.39 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002454/0.5807, allocations: 107.4 kB / 464.1 MB, free: 12.29 MB / 394.7 MB Notification: Performance of SimCode: time 8.72e-07/0.5807, allocations: 0 / 464.1 MB, free: 12.29 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.509/3.09, allocations: 4.496 MB / 468.6 MB, free: 7.793 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Sources_res.mat does not exist to compare? outputFormat=mat