Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.026/2.026, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004774/0.0004775, allocations: 12 kB / 282.7 MB, free: 9.559 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3533/0.3538, allocations: 48.7 MB / 331.4 MB, free: 6.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.149/7.503, allocations: 2.502 GB / 2.826 GB, free: 15.59 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002985/7.503, allocations: 85.02 kB / 2.826 GB, free: 15.54 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304/9.808, allocations: 427.2 MB / 3.243 GB, free: 48.95 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.996e-06/9.808, allocations: 2.812 kB / 3.243 GB, free: 48.95 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.376e-05/9.808, allocations: 20.62 kB / 3.243 GB, free: 48.95 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.008103/9.816, allocations: 1.776 MB / 3.245 GB, free: 48.12 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/9.816, allocations: 11.59 kB / 3.245 GB, free: 48.12 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002869/9.816, allocations: 107 kB / 3.245 GB, free: 48.08 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003531/9.82, allocations: 312 kB / 3.245 GB, free: 48.04 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001765/9.822, allocations: 0.5893 MB / 3.246 GB, free: 47.77 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.677e-05/9.822, allocations: 52.78 kB / 3.246 GB, free: 47.77 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/9.822, allocations: 54.55 kB / 3.246 GB, free: 47.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003605/9.826, allocations: 0.9812 MB / 3.247 GB, free: 47.58 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.391e-05/9.826, allocations: 2.297 kB / 3.247 GB, free: 47.58 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001046/9.826, allocations: 31.23 kB / 3.247 GB, free: 47.58 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.535e-05/9.826, allocations: 31.03 kB / 3.247 GB, free: 47.58 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003866/9.83, allocations: 0.9049 MB / 3.248 GB, free: 47.57 MB / 442.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.006514/9.836, allocations: 4.323 MB / 3.252 GB, free: 44.47 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003649/9.84, allocations: 0.7641 MB / 3.253 GB, free: 44.43 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3414/10.18, allocations: 78.98 MB / 3.33 GB, free: 16.19 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.015e-05/10.18, allocations: 42.56 kB / 3.33 GB, free: 16.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 2.675e-06/10.18, allocations: 0 / 3.33 GB, free: 16.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=52): time 0.01058/10.19, allocations: 2.279 MB / 3.332 GB, free: 15.61 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.836e-05/10.19, allocations: 109.2 kB / 3.332 GB, free: 15.48 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008145/10.19, allocations: 433.2 kB / 3.333 GB, free: 15.37 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001443/10.19, allocations: 32.64 kB / 3.333 GB, free: 15.34 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002583/10.19, allocations: 382.2 kB / 3.333 GB, free: 15.07 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002081/10.19, allocations: 184.2 kB / 3.333 GB, free: 14.96 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.467e-05/10.19, allocations: 13.47 kB / 3.333 GB, free: 14.96 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006625/10.19, allocations: 336.2 kB / 3.334 GB, free: 30.65 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001087/10.2, allocations: 253.5 kB / 3.334 GB, free: 30.64 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/10.2, allocations: 461.7 kB / 3.334 GB, free: 30.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/10.2, allocations: 311.4 kB / 3.335 GB, free: 30.38 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/10.2, allocations: 3.75 kB / 3.335 GB, free: 30.38 MB / 474.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.003778/10.2, allocations: 0.9601 MB / 3.335 GB, free: 30.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00095/10.2, allocations: 2.351 MB / 3.338 GB, free: 27.83 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/10.2, allocations: 6.719 kB / 3.338 GB, free: 27.83 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003366/10.21, allocations: 435.6 kB / 3.338 GB, free: 27.81 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009434/10.21, allocations: 140.2 kB / 3.338 GB, free: 27.81 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00197/10.21, allocations: 0.924 MB / 3.339 GB, free: 27.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001294/10.21, allocations: 91.8 kB / 3.339 GB, free: 27.26 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/10.21, allocations: 39.92 kB / 3.339 GB, free: 27.26 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/10.21, allocations: 6.531 kB / 3.339 GB, free: 27.26 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003349/10.21, allocations: 0.8726 MB / 3.34 GB, free: 26.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.631e-05/10.21, allocations: 4 kB / 3.34 GB, free: 26.83 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002103/10.22, allocations: 311.5 kB / 3.341 GB, free: 26.64 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/10.22, allocations: 153.7 kB / 3.341 GB, free: 26.53 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001729/10.22, allocations: 0.8552 MB / 3.341 GB, free: 25.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009829/10.22, allocations: 85.38 kB / 3.342 GB, free: 25.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.232e-05/10.22, allocations: 36.75 kB / 3.342 GB, free: 25.72 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 19} Notification: Performance of prepare postOptimizeDAE: time 0.0006753/10.22, allocations: 284.5 kB / 3.342 GB, free: 25.49 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002136/10.22, allocations: 63.2 kB / 3.342 GB, free: 25.43 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005243/10.23, allocations: 2.751 MB / 3.345 GB, free: 23.87 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.624e-05/10.23, allocations: 36.28 kB / 3.345 GB, free: 23.86 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/10.23, allocations: 0 / 3.345 GB, free: 23.86 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.74e-05/10.23, allocations: 6.047 kB / 3.345 GB, free: 23.86 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006754/10.23, allocations: 3.733 MB / 3.348 GB, free: 20.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/10.23, allocations: 0 / 3.348 GB, free: 20.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001/10.23, allocations: 147.3 kB / 3.348 GB, free: 20.68 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006439/10.23, allocations: 99.94 kB / 3.349 GB, free: 20.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.946e-05/10.23, allocations: 23.12 kB / 3.349 GB, free: 20.58 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001091/10.24, allocations: 1.135 MB / 3.35 GB, free: 19.42 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/10.24, allocations: 0 / 3.35 GB, free: 19.42 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004709/10.24, allocations: 2.272 MB / 3.352 GB, free: 17.35 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006573/10.24, allocations: 339.6 kB / 3.352 GB, free: 17.05 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001663/10.24, allocations: 16.06 kB / 3.352 GB, free: 17.03 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000859/10.24, allocations: 74.98 kB / 3.352 GB, free: 16.97 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/10.24, allocations: 45.05 kB / 3.352 GB, free: 16.95 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.889e-05/10.24, allocations: 27 kB / 3.352 GB, free: 16.92 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008389/10.24, allocations: 454.4 kB / 3.353 GB, free: 16.54 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.21e-07/10.24, allocations: 0 / 3.353 GB, free: 16.54 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006732/10.25, allocations: 1.392 MB / 3.354 GB, free: 15.19 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pump.medium.p,pump.medium.h) * Number of discrete variables: 21 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse12.phase,$cse12.region,$cse16.phase,$cse16.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0159/10.27, allocations: 4.442 MB / 3.359 GB, free: 11.34 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004917/10.27, allocations: 1.399 MB / 3.36 GB, free: 10.16 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/10.27, allocations: 0 / 3.36 GB, free: 10.16 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002045/10.27, allocations: 0.7366 MB / 3.361 GB, free: 9.496 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002671/10.28, allocations: 301 kB / 3.361 GB, free: 9.277 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6949/10.97, allocations: 127.7 MB / 3.486 GB, free: 61.86 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000675/10.97, allocations: 1.146 MB / 3.487 GB, free: 61.14 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008513/10.97, allocations: 455.5 kB / 3.487 GB, free: 61.13 MB / 474.7 MB Notification: Performance of SimCode: time 1.493e-06/10.97, allocations: 0 / 3.487 GB, free: 61.13 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.006/14.98, allocations: 43.38 MB / 3.529 GB, free: 32 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve_res.mat does not exist to compare? outputFormat=mat