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.595/2.595, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.668e-05/3.685e-05, allocations: 7.984 kB / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4545/0.4545, allocations: 54.85 MB / 364.6 MB, free: 5.559 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.09/8.544, allocations: 2.608 GB / 2.964 GB, free: 113.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003543/8.545, allocations: 82.52 kB / 2.964 GB, free: 113.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.535/12.08, allocations: 0.6323 GB / 3.596 GB, free: 38.27 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.647e-06/12.08, allocations: 0 / 3.596 GB, free: 38.27 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001748/12.08, allocations: 43.09 kB / 3.597 GB, free: 38.27 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.01217/12.09, allocations: 2.445 MB / 3.599 GB, free: 37.1 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.681e-05/12.09, allocations: 10.09 kB / 3.599 GB, free: 37.1 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006461/12.09, allocations: 183.3 kB / 3.599 GB, free: 37.05 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01152/12.1, allocations: 0.9487 MB / 3.6 GB, free: 36.97 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003626/12.11, allocations: 1.058 MB / 3.601 GB, free: 36.61 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00021/12.11, allocations: 99.22 kB / 3.601 GB, free: 36.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004333/12.11, allocations: 113.3 kB / 3.601 GB, free: 36.6 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008182/12.12, allocations: 2.253 MB / 3.603 GB, free: 36.14 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.043e-05/12.12, allocations: 3.938 kB / 3.603 GB, free: 36.14 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003161/12.12, allocations: 61.16 kB / 3.604 GB, free: 36.14 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.272e-05/12.12, allocations: 30.69 kB / 3.604 GB, free: 36.14 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008038/12.13, allocations: 1.972 MB / 3.605 GB, free: 36.09 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01645/12.14, allocations: 9.78 MB / 3.615 GB, free: 29.47 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006012/12.15, allocations: 1.492 MB / 3.616 GB, free: 29.44 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001068/12.15, allocations: 408.2 kB / 3.617 GB, free: 29.43 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06953/12.22, allocations: 18.97 MB / 3.635 GB, free: 19.74 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.917e-05/12.22, allocations: 45.66 kB / 3.635 GB, free: 19.7 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=88): time 6.002e-06/12.22, allocations: 3.703 kB / 3.635 GB, free: 19.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=88): time 0.009855/12.23, allocations: 2.261 MB / 3.638 GB, free: 19.27 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.61e-05/12.23, allocations: 273.2 kB / 3.638 GB, free: 18.95 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001371/12.23, allocations: 0.7358 MB / 3.639 GB, free: 18.62 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000209/12.23, allocations: 45.36 kB / 3.639 GB, free: 18.57 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005193/12.23, allocations: 0.6716 MB / 3.639 GB, free: 18 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003655/12.23, allocations: 305.6 kB / 3.64 GB, free: 17.77 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/12.23, allocations: 24.66 kB / 3.64 GB, free: 17.75 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000118/12.23, allocations: 363.6 kB / 3.64 GB, free: 17.41 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009037/12.23, allocations: 335.3 kB / 3.64 GB, free: 17.29 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001236/12.23, allocations: 0.8908 MB / 3.641 GB, free: 16.42 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/12.24, allocations: 459.3 kB / 3.642 GB, free: 16.24 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.449e-05/12.24, allocations: 3.938 kB / 3.642 GB, free: 16.24 MB / 0.4948 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003252/12.24, allocations: 1.251 MB / 3.643 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.003008/12.24, allocations: 6.88 MB / 3.65 GB, free: 24.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-05/12.24, allocations: 16.88 kB / 3.65 GB, free: 24.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.057e-05/12.24, allocations: 29.5 kB / 3.65 GB, free: 24.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002705/12.24, allocations: 395.7 kB / 3.65 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.728e-05/12.24, allocations: 35.31 kB / 3.65 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002506/12.25, allocations: 240.4 kB / 3.65 GB, free: 24.24 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002613/12.25, allocations: 79.8 kB / 3.65 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/12.25, allocations: 3.5 kB / 3.65 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002917/12.25, allocations: 1.165 MB / 3.651 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.297e-05/12.25, allocations: 14.41 kB / 3.651 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.722e-05/12.25, allocations: 27.66 kB / 3.651 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002421/12.25, allocations: 390.5 kB / 3.652 GB, free: 23.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-05/12.25, allocations: 44.62 kB / 3.652 GB, free: 23.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001918/12.26, allocations: 200.8 kB / 3.652 GB, free: 23.65 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002611/12.26, allocations: 86.66 kB / 3.652 GB, free: 23.63 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 () * 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.000497/12.26, allocations: 201.6 kB / 3.652 GB, free: 23.45 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004346/12.26, allocations: 130.3 kB / 3.652 GB, free: 23.38 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009182/12.27, allocations: 5.804 MB / 3.658 GB, free: 20.68 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001065/12.27, allocations: 88.91 kB / 3.658 GB, free: 20.65 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/12.27, allocations: 1.156 kB / 3.658 GB, free: 20.65 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.891e-05/12.27, allocations: 8.828 kB / 3.658 GB, free: 20.64 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004762/12.27, allocations: 2.795 MB / 3.661 GB, free: 19.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.666e-05/12.27, allocations: 0 / 3.661 GB, free: 19.28 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002018/12.27, allocations: 291.1 kB / 3.661 GB, free: 19.25 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.217e-05/12.27, allocations: 6.531 kB / 3.661 GB, free: 19.25 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001434/12.27, allocations: 29.17 kB / 3.661 GB, free: 19.24 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.889e-06/12.27, allocations: 3.906 kB / 3.661 GB, free: 19.24 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/12.27, allocations: 3.938 kB / 3.661 GB, free: 19.23 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004515/12.28, allocations: 2.679 MB / 3.664 GB, free: 17.98 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001327/12.28, allocations: 0.5222 MB / 3.664 GB, free: 17.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000369/12.28, allocations: 23.12 kB / 3.664 GB, free: 17.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001693/12.28, allocations: 142.2 kB / 3.665 GB, free: 17.55 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002633/12.28, allocations: 91.31 kB / 3.665 GB, free: 17.54 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.844e-05/12.28, allocations: 36.56 kB / 3.665 GB, free: 17.53 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001273/12.28, allocations: 0.6543 MB / 3.665 GB, free: 17.26 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.01e-07/12.28, allocations: 0 / 3.665 GB, free: 17.26 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00921/12.29, allocations: 1.717 MB / 3.667 GB, free: 16.9 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 () * 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.01637/12.31, allocations: 5.095 MB / 3.672 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005092/12.31, allocations: 2.242 MB / 3.674 GB, free: 11.12 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/12.31, allocations: 4 kB / 3.674 GB, free: 11.11 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002491/12.32, allocations: 1.359 MB / 3.676 GB, free: 9.824 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00578/12.32, allocations: 0.5804 MB / 3.676 GB, free: 9.402 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8054/13.13, allocations: 126.1 MB / 3.799 GB, free: 41.29 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001271/13.13, allocations: 1.659 MB / 3.801 GB, free: 40.52 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00163/13.13, allocations: 0.8825 MB / 3.802 GB, free: 40.52 MB / 0.5105 GB Notification: Performance of SimCode: time 1.694e-06/13.13, allocations: 0 / 3.802 GB, free: 40.52 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.037/17.17, allocations: 54.48 MB / 3.855 GB, free: 14.74 MB / 0.5105 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