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/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.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.526/2.526, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.992e-05/1.969e-05, allocations: 0 / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3635, allocations: 54.86 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.936/8.299, allocations: 2.607 GB / 2.957 GB, free: 122.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003281/8.3, allocations: 83.92 kB / 2.957 GB, free: 122.9 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.552/11.85, allocations: 0.6264 GB / 3.584 GB, free: 42.35 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.194e-06/11.85, allocations: 0 / 3.584 GB, free: 42.35 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001474/11.85, allocations: 38.08 kB / 3.584 GB, free: 42.34 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.01193/11.86, allocations: 2.452 MB / 3.586 GB, free: 41.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/11.86, allocations: 10.91 kB / 3.586 GB, free: 41.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01132/11.87, allocations: 0.9541 MB / 3.587 GB, free: 41.12 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003454/11.88, allocations: 1.049 MB / 3.588 GB, free: 40.78 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/11.88, allocations: 58.3 kB / 3.588 GB, free: 40.77 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002281/11.88, allocations: 71.5 kB / 3.588 GB, free: 40.77 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003152/11.88, allocations: 1.208 MB / 3.589 GB, free: 40.76 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003076/11.89, allocations: 1.422 MB / 3.591 GB, free: 40.31 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.696e-05/11.89, allocations: 7.688 kB / 3.591 GB, free: 40.31 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000203/11.89, allocations: 3.562 kB / 3.591 GB, free: 40.31 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.224e-05/11.89, allocations: 36.83 kB / 3.591 GB, free: 40.31 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.472/13.36, allocations: 265.7 MB / 3.85 GB, free: 24.05 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001321/13.36, allocations: 0.5322 MB / 3.851 GB, free: 23.75 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005497/13.36, allocations: 254.5 kB / 3.851 GB, free: 23.61 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06898/13.43, allocations: 20.22 MB / 3.871 GB, free: 21.05 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/13.43, allocations: 39.97 kB / 3.871 GB, free: 21.01 MB / 0.573 GB Notification: Performance of pre-optimization done (n=23): time 4.168e-06/13.43, allocations: 0 / 3.871 GB, free: 21.01 MB / 0.573 GB Notification: Performance of matching and sorting (n=23): time 0.007434/13.44, allocations: 1.357 MB / 3.872 GB, free: 20.24 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001408/13.44, allocations: 269.4 kB / 3.872 GB, free: 19.93 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001969/13.44, allocations: 0.995 MB / 3.873 GB, free: 19.31 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001039/13.44, allocations: 25.7 kB / 3.873 GB, free: 19.28 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00067/13.44, allocations: 0.8589 MB / 3.874 GB, free: 18.75 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001466/13.44, allocations: 105.1 kB / 3.874 GB, free: 18.69 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.594e-05/13.44, allocations: 0 / 3.874 GB, free: 18.69 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001735/13.44, allocations: 365.6 kB / 3.875 GB, free: 18.36 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007276/13.44, allocations: 309.2 kB / 3.875 GB, free: 18.2 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/13.44, allocations: 0.8541 MB / 3.876 GB, free: 17.29 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004537/13.45, allocations: 0.7435 MB / 3.877 GB, free: 16.87 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.036e-05/13.45, allocations: 4 kB / 3.877 GB, free: 16.87 MB / 0.573 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.006654/13.45, allocations: 1.429 MB / 3.878 GB, free: 16.01 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002972/13.46, allocations: 6.89 MB / 3.885 GB, free: 8.75 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.575e-05/13.46, allocations: 16 kB / 3.885 GB, free: 8.734 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.486e-05/13.46, allocations: 28 kB / 3.885 GB, free: 8.707 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002621/13.46, allocations: 392 kB / 3.885 GB, free: 8.422 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.533e-05/13.46, allocations: 36.16 kB / 3.885 GB, free: 8.398 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003475/13.46, allocations: 359.3 kB / 3.885 GB, free: 8.141 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000206/13.46, allocations: 87.48 kB / 3.886 GB, free: 8.082 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/13.46, allocations: 0 / 3.886 GB, free: 8.082 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005234/13.47, allocations: 1.231 MB / 3.887 GB, free: 7.371 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.434e-05/13.47, allocations: 16 kB / 3.887 GB, free: 7.355 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.586e-05/13.47, allocations: 28.84 kB / 3.887 GB, free: 7.328 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00228/13.47, allocations: 386.8 kB / 3.887 GB, free: 7.047 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.269e-05/13.47, allocations: 45.52 kB / 3.887 GB, free: 7.016 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002144/13.47, allocations: 227.2 kB / 3.887 GB, free: 6.852 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001635/13.47, allocations: 83.94 kB / 3.887 GB, free: 6.789 MB / 0.573 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.0004043/13.47, allocations: 164.5 kB / 3.888 GB, free: 6.664 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003651/13.48, allocations: 0.5793 MB / 3.888 GB, free: 6.266 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002018/13.48, allocations: 122.4 kB / 3.888 GB, free: 6.148 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002687/13.48, allocations: 1.012 MB / 3.889 GB, free: 5.562 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/13.48, allocations: 4 kB / 3.889 GB, free: 5.559 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/13.48, allocations: 0 / 3.889 GB, free: 5.559 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/13.48, allocations: 6.094 kB / 3.889 GB, free: 5.559 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002227/13.48, allocations: 0.9425 MB / 3.89 GB, free: 5.082 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.245e-06/13.48, allocations: 0 / 3.89 GB, free: 5.082 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005434/13.48, allocations: 69.17 kB / 3.89 GB, free: 5.031 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.909e-06/13.48, allocations: 0 / 3.89 GB, free: 5.031 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.592e-05/13.48, allocations: 3.938 kB / 3.89 GB, free: 5.031 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/13.48, allocations: 4 kB / 3.89 GB, free: 5.027 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/13.48, allocations: 7.109 kB / 3.89 GB, free: 5.027 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001929/13.48, allocations: 456.3 kB / 3.891 GB, free: 4.668 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000979/13.49, allocations: 410.3 kB / 3.891 GB, free: 4.379 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003965/13.49, allocations: 4 kB / 3.891 GB, free: 4.375 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/13.49, allocations: 80.95 kB / 3.891 GB, free: 4.316 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.561e-05/13.49, allocations: 16.06 kB / 3.891 GB, free: 4.309 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.341e-05/13.49, allocations: 21.86 kB / 3.891 GB, free: 4.297 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002277/13.49, allocations: 1.056 MB / 3.892 GB, free: 3.68 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.345e-06/13.49, allocations: 3.562 kB / 3.892 GB, free: 3.68 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009413/13.5, allocations: 1.7 MB / 3.894 GB, free: 2.191 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 24 * 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 Backend phase and start with SimCode phase: time 0.4297/13.93, allocations: 3.011 MB / 3.897 GB, free: 121.5 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.004081/13.93, allocations: 1.194 MB / 3.898 GB, free: 121.5 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/13.93, allocations: 0 / 3.898 GB, free: 121.5 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002739/13.93, allocations: 85.89 kB / 3.898 GB, free: 121.5 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003998/13.94, allocations: 377.6 kB / 3.898 GB, free: 121.5 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01016/13.95, allocations: 2.043 MB / 3.9 GB, free: 120.9 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001125/13.95, allocations: 1.241 MB / 3.902 GB, free: 120.2 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/13.95, allocations: 0.5993 MB / 3.902 GB, free: 120.2 MB / 0.573 GB Notification: Performance of SimCode: time 4.268e-06/13.95, allocations: 0 / 3.902 GB, free: 120.2 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.88/17.83, allocations: 48.57 MB / 3.95 GB, free: 116.6 MB / 0.573 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