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.PumpingSystem.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.PumpingSystem,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_PumpingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.118/2.118, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003681/0.0003682, allocations: 11.94 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1036, allocations: 44.51 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.994/8.098, allocations: 2.625 GB / 2.926 GB, free: 69.74 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003452/8.098, allocations: 82.66 kB / 2.926 GB, free: 69.7 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.853/11.95, allocations: 0.7028 GB / 3.629 GB, free: 4.328 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.146e-06/11.95, allocations: 0 / 3.629 GB, free: 4.328 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001429/11.95, allocations: 43.88 kB / 3.629 GB, free: 4.285 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: 307 * Number of variables: 307 Notification: Performance of Generate backend data structure: time 0.01342/11.96, allocations: 2.841 MB / 3.632 GB, free: 1.387 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/11.96, allocations: 16.03 kB / 3.632 GB, free: 1.371 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000833/11.97, allocations: 185.7 kB / 3.632 GB, free: 1.18 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006242/11.97, allocations: 0.5641 MB / 3.632 GB, free: 0.6133 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003825/11.98, allocations: 0.9811 MB / 3.633 GB, free: 15.59 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002976/11.98, allocations: 187.3 kB / 3.634 GB, free: 15.38 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000547/11.98, allocations: 116 kB / 3.634 GB, free: 15.27 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007539/11.98, allocations: 2.008 MB / 3.636 GB, free: 13.12 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.238e-05/11.98, allocations: 3.938 kB / 3.636 GB, free: 13.12 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002939/11.98, allocations: 59.98 kB / 3.636 GB, free: 13.06 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001777/11.98, allocations: 82.08 kB / 3.636 GB, free: 12.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007329/11.99, allocations: 1.741 MB / 3.637 GB, free: 11.23 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.02383/12.02, allocations: 9.338 MB / 3.647 GB, free: 1.277 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4193/12.44, allocations: 1.474 MB / 3.648 GB, free: 41.01 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2053/12.64, allocations: 63.38 MB / 3.71 GB, free: 17.94 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004163/12.64, allocations: 1.071 MB / 3.711 GB, free: 17.83 MB / 458.7 MB Notification: Performance of pre-optimization done (n=110): time 5.861e-06/12.64, allocations: 0 / 3.711 GB, free: 17.83 MB / 458.7 MB Notification: Performance of matching and sorting (n=121): time 0.03006/12.67, allocations: 6.488 MB / 3.717 GB, free: 16.46 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000246/12.68, allocations: 305.2 kB / 3.718 GB, free: 16.12 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002067/12.68, allocations: 0.9119 MB / 3.718 GB, free: 15.97 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004872/12.68, allocations: 51.05 kB / 3.719 GB, free: 15.94 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006722/12.68, allocations: 0.5632 MB / 3.719 GB, free: 15.67 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007675/12.68, allocations: 409.2 kB / 3.719 GB, free: 15.46 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/12.68, allocations: 29.19 kB / 3.72 GB, free: 15.46 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002219/12.68, allocations: 375.7 kB / 3.72 GB, free: 15.14 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002107/12.68, allocations: 0.6313 MB / 3.72 GB, free: 15.14 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002448/12.68, allocations: 1.029 MB / 3.721 GB, free: 14.68 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002342/12.69, allocations: 0.7426 MB / 3.722 GB, free: 14.66 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.3e-05/12.69, allocations: 0 / 3.722 GB, free: 14.66 MB / 458.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.006686/12.69, allocations: 2.067 MB / 3.724 GB, free: 14.51 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002644/12.7, allocations: 4.357 MB / 3.728 GB, free: 25.94 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.94e-05/12.7, allocations: 10.53 kB / 3.728 GB, free: 25.94 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01229/12.71, allocations: 0.9997 MB / 3.729 GB, free: 25.88 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00251/12.71, allocations: 292.4 kB / 3.73 GB, free: 25.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005872/12.72, allocations: 4.035 MB / 3.734 GB, free: 22.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002871/12.72, allocations: 128.4 kB / 3.734 GB, free: 22.74 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004055/12.72, allocations: 79.56 kB / 3.734 GB, free: 22.74 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/12.72, allocations: 9.016 kB / 3.734 GB, free: 22.73 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006121/12.73, allocations: 1.807 MB / 3.736 GB, free: 22.65 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.111e-05/12.73, allocations: 10.12 kB / 3.736 GB, free: 22.65 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01058/12.74, allocations: 0.7292 MB / 3.736 GB, free: 22.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002511/12.74, allocations: 319.3 kB / 3.737 GB, free: 22.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00969/12.75, allocations: 6.751 MB / 3.743 GB, free: 17.54 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002017/12.75, allocations: 122.5 kB / 3.743 GB, free: 17.53 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002003/12.75, allocations: 70.22 kB / 3.743 GB, free: 17.53 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 24 (pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],$PRE.controller.y,controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.phase,reservoir.medium.phase,pumps.medium.phase,pumps.monitoring.state_in.phase,source.state.phase,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (159): * Single equations (assignments): 153 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 6,2 7,1 1,2 3,2 1} Notification: Performance of prepare postOptimizeDAE: time 0.001399/12.75, allocations: 466.2 kB / 3.744 GB, free: 17.33 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004922/12.75, allocations: 137.7 kB / 3.744 GB, free: 17.27 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01012/12.76, allocations: 4.946 MB / 3.749 GB, free: 16.79 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.371e-05/12.76, allocations: 51.2 kB / 3.749 GB, free: 16.79 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/12.76, allocations: 0 / 3.749 GB, free: 16.79 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.726e-05/12.76, allocations: 9.312 kB / 3.749 GB, free: 16.79 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01392/12.78, allocations: 6.744 MB / 3.756 GB, free: 16.26 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.636e-05/12.78, allocations: 2.594 kB / 3.756 GB, free: 16.26 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001438/12.78, allocations: 184 kB / 3.756 GB, free: 16.26 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007237/12.79, allocations: 1.365 MB / 3.757 GB, free: 16.17 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004084/12.79, allocations: 40.06 kB / 3.757 GB, free: 16.17 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005401/12.79, allocations: 4.463 MB / 3.761 GB, free: 13.03 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/12.79, allocations: 3.312 kB / 3.761 GB, free: 13.03 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01064/12.8, allocations: 4.923 MB / 3.766 GB, free: 12.48 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001616/12.81, allocations: 0.5452 MB / 3.767 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004133/12.81, allocations: 23.12 kB / 3.767 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001957/12.81, allocations: 110 kB / 3.767 GB, free: 12.22 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004019/12.81, allocations: 125.2 kB / 3.767 GB, free: 12.22 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001599/12.81, allocations: 46.56 kB / 3.767 GB, free: 12.22 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002103/12.81, allocations: 0.9851 MB / 3.768 GB, free: 12.11 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.91e-07/12.81, allocations: 0 / 3.768 GB, free: 12.11 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01038/12.82, allocations: 2.1 MB / 3.77 GB, free: 12.02 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (pumps.medium.p,pumps.medium.T,reservoir.medium.T,reservoir.level,PT1.y) * Number of discrete variables: 36 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T) * Number of discrete states: 2 (controller.y,PumpRPMGenerator.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 1,1 6,2 9,2 3,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02413/12.84, allocations: 7.743 MB / 3.778 GB, free: 10.43 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01061/12.86, allocations: 3.404 MB / 3.781 GB, free: 10.01 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/12.86, allocations: 0 / 3.781 GB, free: 10.01 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004669/12.86, allocations: 1.49 MB / 3.782 GB, free: 9.984 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005985/12.87, allocations: 0.6407 MB / 3.783 GB, free: 9.949 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0241/12.89, allocations: 14.72 MB / 3.797 GB, free: 14.96 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001509/12.89, allocations: 1.532 MB / 3.799 GB, free: 14.21 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001948/12.89, allocations: 0.7699 MB / 3.8 GB, free: 14.2 MB / 490.7 MB Notification: Performance of SimCode: time 2.565e-06/12.89, allocations: 4 kB / 3.8 GB, free: 14.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.192/18.09, allocations: 98.58 MB / 3.896 GB, free: 85.83 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.PumpingSystem_res.mat does not exist to compare? outputFormat=mat