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.Valves.TestValveCharacteristics.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.477/2.477, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005889/0.0005888, allocations: 16 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3631/0.3637, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.823/8.186, allocations: 2.608 GB / 2.969 GB, free: 87.58 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003054/8.187, allocations: 93.14 kB / 2.969 GB, free: 87.53 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.549/11.74, allocations: 0.6346 GB / 3.604 GB, free: 30.03 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.397e-06/11.74, allocations: 3.781 kB / 3.604 GB, free: 30.03 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001641/11.74, allocations: 47.08 kB / 3.604 GB, free: 29.99 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.01263/11.75, allocations: 2.585 MB / 3.606 GB, free: 27.38 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/11.75, allocations: 15.84 kB / 3.606 GB, free: 27.37 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007102/11.75, allocations: 181.5 kB / 3.606 GB, free: 27.18 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0112/11.76, allocations: 0.9487 MB / 3.607 GB, free: 26.24 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003542/11.76, allocations: 1.061 MB / 3.608 GB, free: 25.16 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/11.76, allocations: 105.7 kB / 3.608 GB, free: 25.05 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002954/11.77, allocations: 112 kB / 3.608 GB, free: 24.95 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009028/11.77, allocations: 2.292 MB / 3.611 GB, free: 22.51 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.508e-05/11.77, allocations: 7.938 kB / 3.611 GB, free: 22.5 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002872/11.77, allocations: 56 kB / 3.611 GB, free: 22.45 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.154e-05/11.77, allocations: 32 kB / 3.611 GB, free: 22.42 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01031/11.79, allocations: 2.178 MB / 3.613 GB, free: 20.26 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01499/11.8, allocations: 9.774 MB / 3.622 GB, free: 9.871 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007289/11.81, allocations: 1.612 MB / 3.624 GB, free: 8.277 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07138/11.88, allocations: 18.85 MB / 3.642 GB, free: 3.891 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.636e-05/11.88, allocations: 43.56 kB / 3.642 GB, free: 3.84 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=88): time 4.188e-06/11.88, allocations: 0 / 3.642 GB, free: 3.84 MB / 0.5105 GB Notification: Performance of matching and sorting (n=88): time 0.01475/11.89, allocations: 2.743 MB / 3.645 GB, free: 1.09 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001947/11.89, allocations: 270 kB / 3.645 GB, free: 0.7656 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001727/11.9, allocations: 0.7456 MB / 3.646 GB, free: 4 kB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.4708/12.37, allocations: 40.39 kB / 3.646 GB, free: 57.23 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009891/12.37, allocations: 0.6772 MB / 3.647 GB, free: 56.98 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007191/12.37, allocations: 301.2 kB / 3.647 GB, free: 56.84 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001475/12.37, allocations: 26.78 kB / 3.647 GB, free: 56.84 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001787/12.37, allocations: 364.3 kB / 3.648 GB, free: 56.53 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002825/12.37, allocations: 484.3 kB / 3.648 GB, free: 56.53 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002896/12.37, allocations: 1.041 MB / 3.649 GB, free: 55.84 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002551/12.38, allocations: 0.5867 MB / 3.65 GB, free: 55.84 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-05/12.38, allocations: 6.562 kB / 3.65 GB, free: 55.84 MB / 0.5105 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.006297/12.38, allocations: 1.549 MB / 3.651 GB, free: 55.77 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.00197/12.39, allocations: 6.881 MB / 3.658 GB, free: 48.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001085/12.39, allocations: 21.64 kB / 3.658 GB, free: 48.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.654e-05/12.39, allocations: 27.47 kB / 3.658 GB, free: 48.62 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00286/12.39, allocations: 397 kB / 3.658 GB, free: 48.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.119e-05/12.39, allocations: 36.44 kB / 3.658 GB, free: 48.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002499/12.39, allocations: 237.1 kB / 3.658 GB, free: 48.58 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002866/12.39, allocations: 80.31 kB / 3.659 GB, free: 48.58 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/12.39, allocations: 6.094 kB / 3.659 GB, free: 48.58 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005353/12.4, allocations: 1.461 MB / 3.66 GB, free: 48.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.77e-05/12.4, allocations: 14.75 kB / 3.66 GB, free: 48.57 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.493e-05/12.4, allocations: 31.09 kB / 3.66 GB, free: 48.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002394/12.4, allocations: 393.7 kB / 3.66 GB, free: 48.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.563e-05/12.4, allocations: 35.19 kB / 3.66 GB, free: 48.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001866/12.4, allocations: 209 kB / 3.661 GB, free: 48.54 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000207/12.4, allocations: 78.14 kB / 3.661 GB, free: 48.54 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * Number of states: 0 () * Number of discrete variables: 16 (source2.medium.phase,sink2.medium.phase,source1.medium.phase,sink1.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase,valve_equalPercentage.state_b.phase,valve_equalPercentage.state_a.phase,valve_quadratic.state_b.phase,valve_quadratic.state_a.phase,valve_constant.state_b.phase,valve_constant.state_a.phase,valve_linear.state_b.phase,valve_linear.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 165 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001098/12.4, allocations: 410.7 kB / 3.661 GB, free: 48.35 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003911/12.4, allocations: 121.6 kB / 3.661 GB, free: 48.29 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0115/12.41, allocations: 6.085 MB / 3.667 GB, free: 47.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.427e-05/12.42, allocations: 81.97 kB / 3.667 GB, free: 47.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/12.42, allocations: 7.547 kB / 3.667 GB, free: 47.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-05/12.42, allocations: 3.516 kB / 3.667 GB, free: 47.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004819/12.42, allocations: 2.796 MB / 3.67 GB, free: 47.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-05/12.42, allocations: 3.953 kB / 3.67 GB, free: 47.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001893/12.42, allocations: 293.8 kB / 3.67 GB, free: 47.43 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.737e-05/12.42, allocations: 5.188 kB / 3.67 GB, free: 47.43 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001215/12.42, allocations: 27.83 kB / 3.67 GB, free: 47.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.039e-05/12.42, allocations: 6 kB / 3.67 GB, free: 47.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.706e-06/12.42, allocations: 0 / 3.67 GB, free: 47.43 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006433/12.43, allocations: 2.972 MB / 3.673 GB, free: 47.02 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00136/12.43, allocations: 0.5284 MB / 3.674 GB, free: 46.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003139/12.43, allocations: 26.27 kB / 3.674 GB, free: 46.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001464/12.43, allocations: 137.3 kB / 3.674 GB, free: 46.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002885/12.43, allocations: 99.66 kB / 3.674 GB, free: 46.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.935e-05/12.43, allocations: 33.81 kB / 3.674 GB, free: 46.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001242/12.43, allocations: 0.6694 MB / 3.675 GB, free: 46.59 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.41e-07/12.43, allocations: 3.062 kB / 3.675 GB, free: 46.59 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00849/12.44, allocations: 1.721 MB / 3.676 GB, free: 46.47 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 56 ($cse2.phase,$cse2.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.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,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,source1.medium.phase,sink1.medium.phase,source2.medium.phase,sink2.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01808/12.46, allocations: 5.373 MB / 3.682 GB, free: 45.41 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0122/12.47, allocations: 2.686 MB / 3.684 GB, free: 45.38 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/12.47, allocations: 3.125 kB / 3.684 GB, free: 45.38 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003015/12.48, allocations: 1.509 MB / 3.686 GB, free: 45.36 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005356/12.48, allocations: 0.5779 MB / 3.686 GB, free: 45.34 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3779/12.86, allocations: 144.4 MB / 3.827 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001808/12.86, allocations: 1.654 MB / 3.829 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0017/12.86, allocations: 0.8857 MB / 3.83 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of SimCode: time 1.953e-06/12.86, allocations: 4 kB / 3.83 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.412/17.27, allocations: 52.38 MB / 3.881 GB, free: 60.87 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat does not exist to compare? outputFormat=mat