Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.542/2.542, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.482e-05/2.5e-05, allocations: 7.984 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3804/0.3805, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.896/8.277, allocations: 2.612 GB / 2.962 GB, free: 127 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002927/8.277, allocations: 81.52 kB / 2.962 GB, free: 127 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.205/10.48, allocations: 432.7 MB / 3.384 GB, free: 62.32 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.885e-06/10.48, allocations: 0 / 3.384 GB, free: 62.32 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.534e-05/10.48, allocations: 27.14 kB / 3.384 GB, free: 62.32 MB / 490.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.008267/10.49, allocations: 1.751 MB / 3.386 GB, free: 61.34 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/10.49, allocations: 7.719 kB / 3.386 GB, free: 61.34 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003736/10.49, allocations: 334.1 kB / 3.386 GB, free: 61.29 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001804/10.5, allocations: 0.5733 MB / 3.387 GB, free: 60.91 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.993e-05/10.5, allocations: 26.08 kB / 3.387 GB, free: 60.9 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/10.5, allocations: 33.52 kB / 3.387 GB, free: 60.9 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001481/10.5, allocations: 0.5506 MB / 3.388 GB, free: 60.7 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/10.5, allocations: 0.6604 MB / 3.388 GB, free: 60.34 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.534e-05/10.5, allocations: 11.06 kB / 3.388 GB, free: 60.34 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.427e-05/10.5, allocations: 0 / 3.388 GB, free: 60.34 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.76e-05/10.5, allocations: 22.56 kB / 3.388 GB, free: 60.34 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01157/10.51, allocations: 5.77 MB / 3.394 GB, free: 55.7 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001457/10.51, allocations: 452.6 kB / 3.394 GB, free: 55.52 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004983/10.51, allocations: 226 kB / 3.394 GB, free: 55.43 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2931/10.81, allocations: 81.83 MB / 3.474 GB, free: 7.176 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.333e-05/10.81, allocations: 39 kB / 3.474 GB, free: 7.129 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=47): time 2.504e-06/10.81, allocations: 0 / 3.474 GB, free: 7.129 MB / 0.4948 GB Notification: Performance of matching and sorting (n=51): time 0.008736/10.82, allocations: 1.803 MB / 3.476 GB, free: 5.535 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.434e-05/10.82, allocations: 107.2 kB / 3.476 GB, free: 5.406 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006099/10.82, allocations: 385.5 kB / 3.477 GB, free: 5.055 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 7.987e-05/10.82, allocations: 33.7 kB / 3.477 GB, free: 5.016 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002432/10.82, allocations: 375.7 kB / 3.477 GB, free: 4.668 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/10.82, allocations: 167.8 kB / 3.477 GB, free: 4.516 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.79e-05/10.82, allocations: 3.938 kB / 3.477 GB, free: 4.512 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001528/10.82, allocations: 341.4 kB / 3.478 GB, free: 4.18 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004397/10.82, allocations: 188.3 kB / 3.478 GB, free: 4.004 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005593/10.82, allocations: 384.1 kB / 3.478 GB, free: 3.562 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0017/10.82, allocations: 330.8 kB / 3.478 GB, free: 3.297 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/10.82, allocations: 4 kB / 3.478 GB, free: 3.293 MB / 0.4948 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.00328/10.82, allocations: 0.8131 MB / 3.479 GB, free: 2.559 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.00111/10.82, allocations: 2.176 MB / 3.481 GB, free: 224 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/10.82, allocations: 4 kB / 3.481 GB, free: 220 kB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.435/11.26, allocations: 301.1 kB / 3.482 GB, free: 78.96 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/11.26, allocations: 143.2 kB / 3.482 GB, free: 78.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002509/11.26, allocations: 0.9383 MB / 3.483 GB, free: 78.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001663/11.26, allocations: 83.27 kB / 3.483 GB, free: 78.45 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002343/11.26, allocations: 38 kB / 3.483 GB, free: 78.45 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/11.26, allocations: 7.469 kB / 3.483 GB, free: 78.45 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003683/11.27, allocations: 0.699 MB / 3.483 GB, free: 78.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.262e-05/11.27, allocations: 6.344 kB / 3.483 GB, free: 78.44 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001736/11.27, allocations: 269.1 kB / 3.484 GB, free: 78.43 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/11.27, allocations: 145.8 kB / 3.484 GB, free: 78.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00145/11.27, allocations: 0.8443 MB / 3.485 GB, free: 77.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001143/11.27, allocations: 79.92 kB / 3.485 GB, free: 77.91 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/11.27, allocations: 35.83 kB / 3.485 GB, free: 77.91 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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 {3 18} Notification: Performance of prepare postOptimizeDAE: time 0.0003106/11.27, allocations: 121.2 kB / 3.485 GB, free: 77.8 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002611/11.28, allocations: 0.5681 MB / 3.485 GB, free: 77.76 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001961/11.28, allocations: 63.48 kB / 3.486 GB, free: 77.76 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005021/11.28, allocations: 2.636 MB / 3.488 GB, free: 77.55 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.467e-05/11.28, allocations: 38.48 kB / 3.488 GB, free: 77.55 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/11.28, allocations: 0 / 3.488 GB, free: 77.55 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.548e-05/11.28, allocations: 8.641 kB / 3.488 GB, free: 77.55 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006327/11.29, allocations: 3.583 MB / 3.492 GB, free: 77.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/11.29, allocations: 1.312 kB / 3.492 GB, free: 77.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00136/11.29, allocations: 171.1 kB / 3.492 GB, free: 77.18 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000339/11.29, allocations: 66.22 kB / 3.492 GB, free: 77.17 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.464e-05/11.29, allocations: 9.031 kB / 3.492 GB, free: 77.17 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007428/11.29, allocations: 1.21 MB / 3.493 GB, free: 76.06 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.726e-06/11.29, allocations: 0 / 3.493 GB, free: 76.06 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004244/11.3, allocations: 2.264 MB / 3.495 GB, free: 75.79 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006949/11.3, allocations: 316.9 kB / 3.496 GB, free: 75.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000154/11.3, allocations: 3.953 kB / 3.496 GB, free: 75.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009345/11.3, allocations: 60.08 kB / 3.496 GB, free: 75.62 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/11.3, allocations: 58.02 kB / 3.496 GB, free: 75.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.802e-05/11.3, allocations: 25.2 kB / 3.496 GB, free: 75.62 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0005783/11.3, allocations: 360.6 kB / 3.496 GB, free: 75.53 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.41e-07/11.3, allocations: 0 / 3.496 GB, free: 75.53 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006505/11.31, allocations: 1.344 MB / 3.497 GB, free: 75.53 MB / 0.4948 GB 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: 23 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse11.region3boundary,$cse12.region3boundary,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.region3boundary,$cse16.region3boundary,$cse17.phase,$cse17.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01503/11.32, allocations: 4.552 MB / 3.502 GB, free: 74.68 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0032/11.32, allocations: 1.199 MB / 3.503 GB, free: 74.65 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/11.32, allocations: 0 / 3.503 GB, free: 74.65 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001616/11.33, allocations: 0.751 MB / 3.504 GB, free: 74.65 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002698/11.33, allocations: 278 kB / 3.504 GB, free: 74.64 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1995/11.53, allocations: 55.77 MB / 3.558 GB, free: 72.95 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006423/11.53, allocations: 1.142 MB / 3.56 GB, free: 72.23 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000801/11.53, allocations: 441.9 kB / 3.56 GB, free: 72.22 MB / 0.4948 GB Notification: Performance of SimCode: time 1.032e-06/11.53, allocations: 0 / 3.56 GB, free: 72.22 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.152/15.68, allocations: 45.1 MB / 3.604 GB, free: 60.37 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic_res.mat does not exist to compare? outputFormat=mat