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.TestValveCoefficients.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.TestValveCoefficients,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.539/2.539, allocations: 235 MB / 248.1 MB, free: 14.6 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.517e-05/3.527e-05, allocations: 4 kB / 309.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4351/0.4352, allocations: 54.85 MB / 364.6 MB, free: 5.418 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.885/8.32, allocations: 2.608 GB / 2.964 GB, free: 102.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/8.321, allocations: 85.23 kB / 2.964 GB, free: 102.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.495/11.82, allocations: 0.632 GB / 3.596 GB, free: 39.72 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.495e-06/11.82, allocations: 1.719 kB / 3.596 GB, free: 39.72 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001885/11.82, allocations: 40.19 kB / 3.596 GB, free: 39.71 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.01238/11.83, allocations: 2.437 MB / 3.598 GB, free: 38.58 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/11.83, allocations: 9.156 kB / 3.598 GB, free: 38.58 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006274/11.83, allocations: 178 kB / 3.598 GB, free: 38.54 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01165/11.84, allocations: 0.9562 MB / 3.599 GB, free: 38.46 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003647/11.84, allocations: 1.055 MB / 3.6 GB, free: 38.12 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000193/11.84, allocations: 111.4 kB / 3.6 GB, free: 38.12 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003615/11.84, allocations: 116.8 kB / 3.6 GB, free: 38.12 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008309/11.85, allocations: 2.242 MB / 3.603 GB, free: 37.68 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.019e-05/11.85, allocations: 8.219 kB / 3.603 GB, free: 37.68 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002918/11.85, allocations: 58.34 kB / 3.603 GB, free: 37.68 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.225e-05/11.85, allocations: 31.44 kB / 3.603 GB, free: 37.68 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007783/11.86, allocations: 1.972 MB / 3.605 GB, free: 37.66 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01739/11.88, allocations: 10.08 MB / 3.615 GB, free: 30.71 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005914/11.88, allocations: 1.487 MB / 3.616 GB, free: 30.67 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001028/11.89, allocations: 378.6 kB / 3.616 GB, free: 30.66 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06594/11.95, allocations: 17.14 MB / 3.633 GB, free: 21.85 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.344e-05/11.95, allocations: 43.12 kB / 3.633 GB, free: 21.81 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=80): time 4.538e-06/11.95, allocations: 0 / 3.633 GB, free: 21.81 MB / 0.4948 GB Notification: Performance of matching and sorting (n=80): time 0.009779/11.96, allocations: 2.216 MB / 3.635 GB, free: 21.69 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/11.96, allocations: 269.2 kB / 3.636 GB, free: 21.37 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001609/11.96, allocations: 0.8106 MB / 3.636 GB, free: 21.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002426/11.96, allocations: 41.17 kB / 3.636 GB, free: 21.17 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005027/11.96, allocations: 0.6898 MB / 3.637 GB, free: 20.75 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003929/11.96, allocations: 276.5 kB / 3.637 GB, free: 20.58 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/11.96, allocations: 28.16 kB / 3.637 GB, free: 20.58 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001143/11.96, allocations: 363.3 kB / 3.638 GB, free: 20.27 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000966/11.97, allocations: 335.3 kB / 3.638 GB, free: 20.26 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/11.97, allocations: 0.9284 MB / 3.639 GB, free: 19.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001231/11.97, allocations: 468.8 kB / 3.639 GB, free: 19.46 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.525e-05/11.97, allocations: 3.594 kB / 3.639 GB, free: 19.46 MB / 0.4948 GB Notification: Performance of matching and sorting (n=167) (initialization): time 0.003722/11.97, allocations: 1.272 MB / 3.641 GB, free: 19.28 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002933/11.98, allocations: 7.326 MB / 3.648 GB, free: 27.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-05/11.98, allocations: 18.03 kB / 3.648 GB, free: 27.59 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.453e-05/11.98, allocations: 28.97 kB / 3.648 GB, free: 27.59 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002734/11.98, allocations: 393 kB / 3.648 GB, free: 27.56 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.487e-05/11.98, allocations: 41.97 kB / 3.648 GB, free: 27.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002721/11.98, allocations: 257.7 kB / 3.648 GB, free: 27.47 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003249/11.98, allocations: 89.12 kB / 3.649 GB, free: 27.47 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/11.98, allocations: 8.656 kB / 3.649 GB, free: 27.46 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00324/11.98, allocations: 1.181 MB / 3.65 GB, free: 27.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.989e-05/11.98, allocations: 17.84 kB / 3.65 GB, free: 27.32 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.934e-05/11.98, allocations: 28.97 kB / 3.65 GB, free: 27.32 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002565/11.99, allocations: 399.5 kB / 3.65 GB, free: 27.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.646e-05/11.99, allocations: 38.19 kB / 3.65 GB, free: 27.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00209/11.99, allocations: 208.7 kB / 3.65 GB, free: 27.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002778/11.99, allocations: 77.16 kB / 3.65 GB, free: 27.23 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase,V4.state_b.phase,V4.state_a.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (167): * Single equations (assignments): 167 * 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.0005113/11.99, allocations: 208.4 kB / 3.651 GB, free: 27.08 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004261/11.99, allocations: 124.5 kB / 3.651 GB, free: 27.02 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00877/12, allocations: 5.75 MB / 3.656 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.624e-05/12, allocations: 86.38 kB / 3.656 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/12, allocations: 0 / 3.656 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.99e-05/12, allocations: 7.078 kB / 3.656 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004615/12, allocations: 2.778 MB / 3.659 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.376e-05/12, allocations: 0 / 3.659 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001729/12.01, allocations: 258.3 kB / 3.659 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.987e-05/12.01, allocations: 3.562 kB / 3.659 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001313/12.01, allocations: 26.05 kB / 3.659 GB, free: 25.83 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.508e-06/12.01, allocations: 3.594 kB / 3.659 GB, free: 25.83 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/12.01, allocations: 3.938 kB / 3.659 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004373/12.01, allocations: 2.625 MB / 3.662 GB, free: 24.58 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001295/12.01, allocations: 0.5237 MB / 3.663 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003657/12.01, allocations: 23.72 kB / 3.663 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00176/12.01, allocations: 129.5 kB / 3.663 GB, free: 24.16 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000276/12.01, allocations: 84.31 kB / 3.663 GB, free: 24.15 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-05/12.01, allocations: 33.5 kB / 3.663 GB, free: 24.14 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001432/12.02, allocations: 0.7074 MB / 3.663 GB, free: 23.85 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.81e-07/12.02, allocations: 0 / 3.663 GB, free: 23.85 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009608/12.03, allocations: 1.73 MB / 3.665 GB, free: 23.5 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 ($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,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 88 * 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.01618/12.04, allocations: 5.033 MB / 3.67 GB, free: 21.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005127/12.05, allocations: 2.231 MB / 3.672 GB, free: 20.46 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/12.05, allocations: 4.438 kB / 3.672 GB, free: 20.46 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002154/12.05, allocations: 1.334 MB / 3.674 GB, free: 19.81 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005621/12.06, allocations: 0.5743 MB / 3.674 GB, free: 19.66 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8252/12.88, allocations: 126.6 MB / 3.798 GB, free: 44.16 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001236/12.88, allocations: 1.656 MB / 3.799 GB, free: 43.39 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001617/12.88, allocations: 0.8757 MB / 3.8 GB, free: 43.39 MB / 0.5105 GB Notification: Performance of SimCode: time 2.886e-06/12.88, allocations: 0 / 3.8 GB, free: 43.39 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.242/17.13, allocations: 54.74 MB / 3.854 GB, free: 30.28 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat does not exist to compare? outputFormat=mat