Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystem.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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.PumpingSystem,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_PumpingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.769/1.769, allocations: 171.1 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003492/0.0003492, allocations: 8 kB / 233.3 MB, free: 2.922 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08081/0.08119, allocations: 38.76 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.545/7.627, allocations: 2.515 GB / 2.781 GB, free: 4.824 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/7.627, allocations: 86.59 kB / 2.781 GB, free: 4.781 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987/11.61, allocations: 0.685 GB / 3.466 GB, free: 16.51 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.615e-06/11.61, allocations: 0 / 3.466 GB, free: 16.51 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001632/11.61, allocations: 33.95 kB / 3.466 GB, free: 16.5 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: 307 * Number of variables: 307 Notification: Performance of Generate backend data structure: time 0.01385/11.63, allocations: 2.773 MB / 3.469 GB, free: 14.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/11.63, allocations: 14.08 kB / 3.469 GB, free: 14.9 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009085/11.63, allocations: 186.8 kB / 3.469 GB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00614/11.64, allocations: 0.5142 MB / 3.469 GB, free: 14.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003821/11.64, allocations: 0.98 MB / 3.47 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002935/11.64, allocations: 187 kB / 3.47 GB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007109/11.64, allocations: 123.7 kB / 3.471 GB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007802/11.65, allocations: 2.005 MB / 3.472 GB, free: 13.03 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.66e-05/11.65, allocations: 11.48 kB / 3.472 GB, free: 13.03 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002804/11.65, allocations: 57.31 kB / 3.473 GB, free: 12.99 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001478/11.65, allocations: 85.44 kB / 3.473 GB, free: 12.97 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006296/11.66, allocations: 1.742 MB / 3.474 GB, free: 12.43 MB / 378.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.01944/11.67, allocations: 9.335 MB / 3.483 GB, free: 5.672 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005252/11.68, allocations: 1.47 MB / 3.485 GB, free: 4.789 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5833/12.26, allocations: 63.31 MB / 3.547 GB, free: 25.56 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003895/12.27, allocations: 1.071 MB / 3.548 GB, free: 25.44 MB / 410.7 MB Notification: Performance of pre-optimization done (n=110): time 5.37e-06/12.27, allocations: 1.312 kB / 3.548 GB, free: 25.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=121): time 0.02792/12.3, allocations: 6.49 MB / 3.554 GB, free: 24.08 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002049/12.3, allocations: 303.8 kB / 3.554 GB, free: 23.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00185/12.3, allocations: 0.9189 MB / 3.555 GB, free: 23.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003871/12.3, allocations: 50.52 kB / 3.555 GB, free: 23.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005577/12.3, allocations: 0.5491 MB / 3.556 GB, free: 23.28 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006804/12.3, allocations: 424.1 kB / 3.556 GB, free: 23.08 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000155/12.3, allocations: 28.78 kB / 3.556 GB, free: 23.08 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002016/12.3, allocations: 363.7 kB / 3.557 GB, free: 22.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001881/12.3, allocations: 0.6346 MB / 3.557 GB, free: 22.76 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002114/12.3, allocations: 1.026 MB / 3.558 GB, free: 22.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002091/12.31, allocations: 0.7404 MB / 3.559 GB, free: 22.28 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/12.31, allocations: 4.531 kB / 3.559 GB, free: 22.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.006067/12.31, allocations: 2.063 MB / 3.561 GB, free: 22.12 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002024/12.31, allocations: 4.367 MB / 3.565 GB, free: 17.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.861e-05/12.31, allocations: 14.75 kB / 3.565 GB, free: 17.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01268/12.33, allocations: 0.9938 MB / 3.566 GB, free: 17.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003012/12.33, allocations: 292.9 kB / 3.567 GB, free: 17.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007303/12.34, allocations: 4.036 MB / 3.57 GB, free: 14.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003666/12.34, allocations: 127.4 kB / 3.571 GB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005678/12.34, allocations: 73.09 kB / 3.571 GB, free: 14.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/12.34, allocations: 2.75 kB / 3.571 GB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008516/12.35, allocations: 1.819 MB / 3.572 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.113e-05/12.35, allocations: 11.56 kB / 3.572 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01437/12.36, allocations: 0.7299 MB / 3.573 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003203/12.37, allocations: 324.6 kB / 3.573 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01283/12.38, allocations: 6.746 MB / 3.58 GB, free: 9.137 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002667/12.38, allocations: 129.1 kB / 3.58 GB, free: 9.121 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003414/12.38, allocations: 64.34 kB / 3.58 GB, free: 9.121 MB / 410.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.00186/12.39, allocations: 465.8 kB / 3.581 GB, free: 8.934 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006216/12.39, allocations: 135.9 kB / 3.581 GB, free: 8.867 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01447/12.4, allocations: 4.939 MB / 3.586 GB, free: 8.383 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.623e-05/12.4, allocations: 52.06 kB / 3.586 GB, free: 8.379 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/12.4, allocations: 3.344 kB / 3.586 GB, free: 8.379 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.825e-05/12.4, allocations: 11.02 kB / 3.586 GB, free: 8.379 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01645/12.42, allocations: 6.748 MB / 3.592 GB, free: 7.809 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.677e-05/12.42, allocations: 3.688 kB / 3.592 GB, free: 7.809 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001585/12.42, allocations: 172.8 kB / 3.592 GB, free: 7.809 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007561/12.43, allocations: 1.369 MB / 3.594 GB, free: 7.719 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004811/12.43, allocations: 33.36 kB / 3.594 GB, free: 7.719 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006495/12.43, allocations: 4.472 MB / 3.598 GB, free: 20.58 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.074e-05/12.43, allocations: 10.12 kB / 3.598 GB, free: 20.58 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01184/12.45, allocations: 4.913 MB / 3.603 GB, free: 20.04 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00178/12.45, allocations: 0.5419 MB / 3.604 GB, free: 19.79 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006081/12.45, allocations: 33.45 kB / 3.604 GB, free: 19.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002366/12.45, allocations: 108 kB / 3.604 GB, free: 19.77 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005315/12.45, allocations: 123.5 kB / 3.604 GB, free: 19.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001917/12.45, allocations: 49.39 kB / 3.604 GB, free: 19.77 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002275/12.45, allocations: 0.9865 MB / 3.605 GB, free: 19.66 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.81e-07/12.45, allocations: 0 / 3.605 GB, free: 19.66 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01106/12.46, allocations: 2.076 MB / 3.607 GB, free: 19.57 MB / 426.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.02598/12.49, allocations: 7.743 MB / 3.614 GB, free: 17.98 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01483/12.51, allocations: 3.4 MB / 3.618 GB, free: 17.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.08e-05/12.51, allocations: 384 / 3.618 GB, free: 17.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008168/12.51, allocations: 1.491 MB / 3.619 GB, free: 17.54 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006606/12.52, allocations: 0.6368 MB / 3.62 GB, free: 17.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02186/12.54, allocations: 14.72 MB / 3.634 GB, free: 6.461 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001352/12.54, allocations: 1.534 MB / 3.636 GB, free: 5.707 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00156/12.55, allocations: 0.7686 MB / 3.636 GB, free: 5.699 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/12.55, allocations: 0 / 3.636 GB, free: 5.699 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.183/17.73, allocations: 98.42 MB / 3.733 GB, free: 58.89 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystem_res.mat does not exist to compare? outputFormat=mat