Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.982/1.982, allocations: 209.2 MB / 224.8 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004606/0.0004607, allocations: 15.98 kB / 282.7 MB, free: 9.543 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3598/0.3603, allocations: 48.7 MB / 331.4 MB, free: 6.547 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.967/7.327, allocations: 2.497 GB / 2.82 GB, free: 23.8 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/7.327, allocations: 85.02 kB / 2.821 GB, free: 23.75 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.686/10.01, allocations: 0.4892 GB / 3.31 GB, free: 27.93 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.944e-06/10.01, allocations: 0 / 3.31 GB, free: 27.93 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.732e-05/10.01, allocations: 33.66 kB / 3.31 GB, free: 27.91 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.008653/10.02, allocations: 2.116 MB / 3.312 GB, free: 26.7 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/10.02, allocations: 7.844 kB / 3.312 GB, free: 26.7 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003263/10.02, allocations: 142.8 kB / 3.312 GB, free: 26.61 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007703/10.03, allocations: 0.6745 MB / 3.313 GB, free: 26.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002144/10.03, allocations: 0.8604 MB / 3.313 GB, free: 26 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/10.03, allocations: 76.16 kB / 3.314 GB, free: 25.96 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001822/10.03, allocations: 92.33 kB / 3.314 GB, free: 25.93 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006081/10.04, allocations: 1.734 MB / 3.315 GB, free: 25.22 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.599e-05/10.04, allocations: 11.91 kB / 3.315 GB, free: 25.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000162/10.04, allocations: 46.8 kB / 3.315 GB, free: 25.18 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.487e-05/10.04, allocations: 26.84 kB / 3.315 GB, free: 25.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006873/10.05, allocations: 1.647 MB / 3.317 GB, free: 24.79 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01154/10.06, allocations: 7.366 MB / 3.324 GB, free: 18.89 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007788/10.07, allocations: 1.216 MB / 3.325 GB, free: 18.62 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1119/10.18, allocations: 17.57 MB / 3.343 GB, free: 6.266 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/10.18, allocations: 43.12 kB / 3.343 GB, free: 6.215 MB / 442.7 MB Notification: Performance of pre-optimization done (n=67): time 3.646e-06/10.18, allocations: 0 / 3.343 GB, free: 6.215 MB / 442.7 MB Notification: Performance of matching and sorting (n=67): time 0.01023/10.19, allocations: 2.082 MB / 3.345 GB, free: 4.125 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.798e-05/10.19, allocations: 214.2 kB / 3.345 GB, free: 3.867 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001122/10.19, allocations: 0.6016 MB / 3.345 GB, free: 3.258 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001362/10.19, allocations: 37.7 kB / 3.345 GB, free: 3.215 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003535/10.19, allocations: 0.5544 MB / 3.346 GB, free: 2.66 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002402/10.19, allocations: 223.8 kB / 3.346 GB, free: 2.441 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.179e-05/10.19, allocations: 24 kB / 3.346 GB, free: 2.418 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/10.19, allocations: 350.8 kB / 3.347 GB, free: 2.066 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001463/10.19, allocations: 374.4 kB / 3.347 GB, free: 1.699 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001654/10.19, allocations: 0.7876 MB / 3.348 GB, free: 0.7148 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001595/10.2, allocations: 461.8 kB / 3.348 GB, free: 268 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/10.2, allocations: 7.938 kB / 3.348 GB, free: 260 kB / 442.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.004361/10.2, allocations: 1.194 MB / 3.349 GB, free: 15.05 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002564/10.2, allocations: 5.057 MB / 3.354 GB, free: 9.605 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.016e-05/10.2, allocations: 12 kB / 3.354 GB, free: 9.594 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.283e-05/10.2, allocations: 20 kB / 3.354 GB, free: 9.574 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00212/10.2, allocations: 299.6 kB / 3.355 GB, free: 9.281 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.403e-05/10.2, allocations: 31.86 kB / 3.355 GB, free: 9.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001816/10.21, allocations: 182.8 kB / 3.355 GB, free: 9.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001795/10.21, allocations: 63.92 kB / 3.355 GB, free: 9.008 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/10.21, allocations: 7.125 kB / 3.355 GB, free: 9.004 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004244/10.21, allocations: 1.111 MB / 3.356 GB, free: 7.891 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.241e-05/10.21, allocations: 12 kB / 3.356 GB, free: 7.879 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.01e-05/10.21, allocations: 24.12 kB / 3.356 GB, free: 7.855 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00185/10.21, allocations: 295.5 kB / 3.356 GB, free: 7.566 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.839e-05/10.21, allocations: 31.92 kB / 3.356 GB, free: 7.535 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001417/10.21, allocations: 159.1 kB / 3.356 GB, free: 7.379 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001634/10.21, allocations: 59.98 kB / 3.356 GB, free: 7.32 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (127): * Single equations (assignments): 127 * 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.0008579/10.22, allocations: 356.7 kB / 3.357 GB, free: 6.961 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003206/10.22, allocations: 90.88 kB / 3.357 GB, free: 6.871 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009678/10.23, allocations: 4.643 MB / 3.361 GB, free: 2.184 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-05/10.23, allocations: 67.89 kB / 3.361 GB, free: 2.117 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/10.23, allocations: 0 / 3.361 GB, free: 2.117 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.178e-05/10.23, allocations: 7.938 kB / 3.361 GB, free: 2.109 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3489/10.57, allocations: 2.16 MB / 3.364 GB, free: 48.58 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.026e-05/10.57, allocations: 1.969 kB / 3.364 GB, free: 48.58 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001631/10.58, allocations: 224.8 kB / 3.364 GB, free: 48.58 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.388e-05/10.58, allocations: 3.406 kB / 3.364 GB, free: 48.58 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.089e-05/10.58, allocations: 18.41 kB / 3.364 GB, free: 48.58 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.729e-06/10.58, allocations: 3.375 kB / 3.364 GB, free: 48.58 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/10.58, allocations: 3.703 kB / 3.364 GB, free: 48.58 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004913/10.58, allocations: 2.286 MB / 3.366 GB, free: 48.32 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008362/10.58, allocations: 445.5 kB / 3.367 GB, free: 48.15 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002439/10.58, allocations: 20 kB / 3.367 GB, free: 48.15 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/10.58, allocations: 102.8 kB / 3.367 GB, free: 48.15 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/10.58, allocations: 74.5 kB / 3.367 GB, free: 48.15 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.703e-05/10.58, allocations: 24.41 kB / 3.367 GB, free: 48.15 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001053/10.58, allocations: 0.5658 MB / 3.367 GB, free: 48.04 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.042e-06/10.58, allocations: 5.156 kB / 3.367 GB, free: 48.04 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007971/10.59, allocations: 1.54 MB / 3.369 GB, free: 48.01 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.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,$cse30.phase,$cse30.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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.01676/10.61, allocations: 4.507 MB / 3.373 GB, free: 47.07 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007186/10.62, allocations: 2.056 MB / 3.375 GB, free: 47.03 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/10.62, allocations: 1.438 kB / 3.375 GB, free: 47.03 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002665/10.62, allocations: 1.139 MB / 3.376 GB, free: 47.02 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004325/10.62, allocations: 454.8 kB / 3.377 GB, free: 47.01 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4182/11.04, allocations: 133.9 MB / 3.507 GB, free: 12.17 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009571/11.04, allocations: 1.427 MB / 3.509 GB, free: 10.98 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001218/11.04, allocations: 0.6716 MB / 3.51 GB, free: 10.89 MB / 458.7 MB Notification: Performance of SimCode: time 1.373e-06/11.04, allocations: 0 / 3.51 GB, free: 10.89 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.357/15.4, allocations: 44.26 MB / 3.553 GB, free: 58.02 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat does not exist to compare? outputFormat=mat