Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.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.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.965/1.965, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003813/0.0003813, allocations: 11.94 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1025, allocations: 44.51 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.49/10.59, allocations: 3.666 GB / 3.967 GB, free: 48.08 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003127/10.59, allocations: 82.66 kB / 3.967 GB, free: 48.04 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.413/14, allocations: 0.5508 GB / 4.518 GB, free: 33.95 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.374e-06/14, allocations: 0 / 4.518 GB, free: 33.95 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001093/14, allocations: 23.75 kB / 4.518 GB, free: 33.95 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.01322/14.02, allocations: 3.085 MB / 4.521 GB, free: 32.64 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/14.02, allocations: 7.031 kB / 4.521 GB, free: 32.64 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006913/14.02, allocations: 152.9 kB / 4.521 GB, free: 32.61 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007785/14.02, allocations: 133.4 kB / 4.521 GB, free: 32.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0026/14.02, allocations: 0.7348 MB / 4.522 GB, free: 32.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001809/14.02, allocations: 136.5 kB / 4.522 GB, free: 32.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003725/14.02, allocations: 89.14 kB / 4.522 GB, free: 32.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0039/14.02, allocations: 1.447 MB / 4.524 GB, free: 32.02 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.421e-05/14.02, allocations: 4.875 kB / 4.524 GB, free: 32.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002297/14.03, allocations: 39.69 kB / 4.524 GB, free: 32.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001283/14.03, allocations: 67.88 kB / 4.524 GB, free: 32.02 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004182/14.03, allocations: 1.437 MB / 4.525 GB, free: 32.02 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01367/14.04, allocations: 6.045 MB / 4.531 GB, free: 29.01 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002728/14.05, allocations: 0.8831 MB / 4.532 GB, free: 28.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001705/14.05, allocations: 1.749 MB / 4.534 GB, free: 27.11 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.778e-05/14.05, allocations: 43.47 kB / 4.534 GB, free: 27.07 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009701/14.05, allocations: 107.3 kB / 4.534 GB, free: 27.02 MB / 426.7 MB Notification: Performance of pre-optimization done (n=82): time 4.819e-06/14.05, allocations: 2.844 kB / 4.534 GB, free: 27.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=94): time 0.02957/14.08, allocations: 5.009 MB / 4.539 GB, free: 26.46 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/14.08, allocations: 111.5 kB / 4.539 GB, free: 26.33 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001275/14.08, allocations: 0.6619 MB / 4.539 GB, free: 26.19 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003418/14.08, allocations: 47.08 kB / 4.539 GB, free: 26.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003302/14.08, allocations: 490.7 kB / 4.54 GB, free: 25.84 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000424/14.08, allocations: 340 kB / 4.54 GB, free: 25.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001348/14.08, allocations: 21.28 kB / 4.54 GB, free: 25.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/14.08, allocations: 365.9 kB / 4.541 GB, free: 25.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001939/14.08, allocations: 0.5909 MB / 4.541 GB, free: 25.32 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002147/14.09, allocations: 0.9718 MB / 4.542 GB, free: 24.86 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002302/14.09, allocations: 0.7751 MB / 4.543 GB, free: 24.79 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.404e-05/14.09, allocations: 3.188 kB / 4.543 GB, free: 24.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.006099/14.09, allocations: 1.872 MB / 4.545 GB, free: 24.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001193/14.1, allocations: 4.758 MB / 4.549 GB, free: 19.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-05/14.1, allocations: 18.31 kB / 4.549 GB, free: 19.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002821/14.1, allocations: 337.5 kB / 4.55 GB, free: 19.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0023/14.1, allocations: 287.8 kB / 4.55 GB, free: 19.67 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00244/14.1, allocations: 0.9297 MB / 4.551 GB, free: 19.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002278/14.11, allocations: 112.1 kB / 4.551 GB, free: 19.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002938/14.11, allocations: 82.78 kB / 4.551 GB, free: 19.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/14.11, allocations: 3.438 kB / 4.551 GB, free: 19.14 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005858/14.11, allocations: 1.8 MB / 4.553 GB, free: 19.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.754e-05/14.11, allocations: 10.75 kB / 4.553 GB, free: 19.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00261/14.11, allocations: 339.7 kB / 4.553 GB, free: 19.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002214/14.12, allocations: 285.9 kB / 4.553 GB, free: 19.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0024/14.12, allocations: 0.934 MB / 4.554 GB, free: 18.53 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001876/14.12, allocations: 108.4 kB / 4.554 GB, free: 18.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002489/14.12, allocations: 83.77 kB / 4.554 GB, free: 18.52 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 6 (traceVolume.ind,traceSource.ind,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.001052/14.12, allocations: 420.3 kB / 4.555 GB, free: 18.32 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003697/14.12, allocations: 102.5 kB / 4.555 GB, free: 18.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006125/14.13, allocations: 1.865 MB / 4.557 GB, free: 18.13 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.216e-05/14.13, allocations: 12.19 kB / 4.557 GB, free: 18.13 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/14.13, allocations: 1.094 kB / 4.557 GB, free: 18.13 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.276e-05/14.13, allocations: 7.547 kB / 4.557 GB, free: 18.13 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008102/14.14, allocations: 2.9 MB / 4.56 GB, free: 17.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/14.14, allocations: 3.75 kB / 4.56 GB, free: 17.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001576/14.14, allocations: 177.2 kB / 4.56 GB, free: 17.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003259/14.14, allocations: 399.3 kB / 4.56 GB, free: 17.73 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002546/14.14, allocations: 45.36 kB / 4.56 GB, free: 17.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002094/14.14, allocations: 0.8996 MB / 4.561 GB, free: 17.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.764e-06/14.14, allocations: 3.469 kB / 4.561 GB, free: 17.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006655/14.15, allocations: 2.349 MB / 4.563 GB, free: 16.83 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/14.15, allocations: 323.1 kB / 4.564 GB, free: 16.69 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003133/14.15, allocations: 22.91 kB / 4.564 GB, free: 16.69 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001605/14.15, allocations: 81.19 kB / 4.564 GB, free: 16.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002078/14.15, allocations: 81.62 kB / 4.564 GB, free: 16.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002144/14.15, allocations: 53.34 kB / 4.564 GB, free: 16.68 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001008/14.16, allocations: 0.5157 MB / 4.564 GB, free: 16.58 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.01e-07/14.16, allocations: 0 / 4.564 GB, free: 16.58 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006221/14.16, allocations: 1.344 MB / 4.566 GB, free: 16.35 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01391/14.18, allocations: 5.244 MB / 4.571 GB, free: 14.68 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008049/14.18, allocations: 2.582 MB / 4.573 GB, free: 14.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.281e-05/14.18, allocations: 1.094 kB / 4.573 GB, free: 14.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00229/14.19, allocations: 0.6921 MB / 4.574 GB, free: 14.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003932/14.19, allocations: 458.5 kB / 4.575 GB, free: 14.39 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01651/14.21, allocations: 12.24 MB / 4.586 GB, free: 20.47 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001027/14.21, allocations: 1.139 MB / 4.588 GB, free: 19.76 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001408/14.21, allocations: 442.9 kB / 4.588 GB, free: 19.75 MB / 442.7 MB Notification: Performance of SimCode: time 1.292e-06/14.21, allocations: 0 / 4.588 GB, free: 19.75 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.839/18.05, allocations: 40.43 MB / 4.627 GB, free: 16.55 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat does not exist to compare? outputFormat=mat