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.319/2.319, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004435/0.0004436, allocations: 12 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3608/0.3613, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.066/8.427, allocations: 2.608 GB / 2.968 GB, free: 88.16 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003117/8.427, allocations: 86.41 kB / 2.968 GB, free: 88.12 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.458/11.89, allocations: 0.6344 GB / 3.603 GB, free: 30.89 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.264e-06/11.89, allocations: 0 / 3.603 GB, free: 30.89 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001414/11.89, allocations: 44.27 kB / 3.603 GB, free: 30.86 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.01177/11.9, allocations: 2.573 MB / 3.605 GB, free: 28.26 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/11.9, allocations: 12.03 kB / 3.605 GB, free: 28.25 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007857/11.9, allocations: 181.5 kB / 3.606 GB, free: 28.06 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02085/11.92, allocations: 0.9572 MB / 3.606 GB, free: 27.12 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003472/11.92, allocations: 1.063 MB / 3.608 GB, free: 26.03 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001734/11.92, allocations: 98.38 kB / 3.608 GB, free: 25.93 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003047/11.92, allocations: 120 kB / 3.608 GB, free: 25.82 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009229/11.93, allocations: 2.261 MB / 3.61 GB, free: 23.41 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.512e-05/11.93, allocations: 7.938 kB / 3.61 GB, free: 23.41 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003395/11.93, allocations: 56 kB / 3.61 GB, free: 23.35 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.3e-05/11.93, allocations: 35.94 kB / 3.61 GB, free: 23.32 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01023/11.94, allocations: 2.15 MB / 3.612 GB, free: 21.19 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01657/11.96, allocations: 10.07 MB / 3.622 GB, free: 10.42 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007029/11.97, allocations: 1.54 MB / 3.623 GB, free: 8.906 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06615/12.03, allocations: 17.03 MB / 3.64 GB, free: 6.441 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.456e-05/12.03, allocations: 43.22 kB / 3.64 GB, free: 6.391 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=80): time 3.436e-06/12.03, allocations: 0 / 3.64 GB, free: 6.391 MB / 0.5105 GB Notification: Performance of matching and sorting (n=80): time 0.01387/12.05, allocations: 2.53 MB / 3.643 GB, free: 3.852 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002022/12.05, allocations: 265.7 kB / 3.643 GB, free: 3.531 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002229/12.05, allocations: 0.8537 MB / 3.644 GB, free: 2.664 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002652/12.05, allocations: 45.7 kB / 3.644 GB, free: 2.613 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007455/12.05, allocations: 0.6921 MB / 3.644 GB, free: 1.918 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005134/12.05, allocations: 270.3 kB / 3.645 GB, free: 1.656 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/12.05, allocations: 28 kB / 3.645 GB, free: 1.629 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001928/12.05, allocations: 366.7 kB / 3.645 GB, free: 1.262 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002181/12.05, allocations: 471.7 kB / 3.645 GB, free: 0.8008 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4512/12.51, allocations: 1.047 MB / 3.647 GB, free: 55.47 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002914/12.51, allocations: 0.5877 MB / 3.647 GB, free: 55.46 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.838e-05/12.51, allocations: 5.281 kB / 3.647 GB, free: 55.46 MB / 0.5105 GB Notification: Performance of matching and sorting (n=167) (initialization): time 0.006432/12.51, allocations: 1.535 MB / 3.649 GB, free: 55.42 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001881/12.52, allocations: 7.318 MB / 3.656 GB, free: 47.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.636e-05/12.52, allocations: 19.38 kB / 3.656 GB, free: 47.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.253e-05/12.52, allocations: 28.5 kB / 3.656 GB, free: 47.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00285/12.52, allocations: 396 kB / 3.656 GB, free: 47.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.415e-05/12.52, allocations: 38.38 kB / 3.656 GB, free: 47.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002624/12.52, allocations: 263.2 kB / 3.656 GB, free: 47.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002172/12.52, allocations: 83.94 kB / 3.657 GB, free: 47.82 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/12.52, allocations: 11.02 kB / 3.657 GB, free: 47.82 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005221/12.53, allocations: 1.451 MB / 3.658 GB, free: 47.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.718e-05/12.53, allocations: 19.72 kB / 3.658 GB, free: 47.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.762e-05/12.53, allocations: 27.8 kB / 3.658 GB, free: 47.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002256/12.53, allocations: 395.8 kB / 3.658 GB, free: 47.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.192e-05/12.53, allocations: 34.45 kB / 3.658 GB, free: 47.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/12.53, allocations: 210.5 kB / 3.659 GB, free: 47.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001572/12.53, allocations: 83.88 kB / 3.659 GB, free: 47.8 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 () * Number of clocked 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.001076/12.53, allocations: 409.1 kB / 3.659 GB, free: 47.62 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003516/12.53, allocations: 131.2 kB / 3.659 GB, free: 47.61 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01054/12.54, allocations: 5.942 MB / 3.665 GB, free: 47.12 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.322e-05/12.54, allocations: 80.7 kB / 3.665 GB, free: 47.12 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/12.54, allocations: 1.422 kB / 3.665 GB, free: 47.12 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.471e-05/12.54, allocations: 7.312 kB / 3.665 GB, free: 47.12 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004616/12.55, allocations: 2.769 MB / 3.668 GB, free: 46.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.219e-05/12.55, allocations: 2.531 kB / 3.668 GB, free: 46.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001662/12.55, allocations: 249.8 kB / 3.668 GB, free: 46.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-05/12.55, allocations: 4.875 kB / 3.668 GB, free: 46.82 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001312/12.55, allocations: 33.23 kB / 3.668 GB, free: 46.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.007e-05/12.55, allocations: 3.969 kB / 3.668 GB, free: 46.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/12.55, allocations: 4.531 kB / 3.668 GB, free: 46.81 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005891/12.56, allocations: 2.833 MB / 3.671 GB, free: 46.39 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001397/12.56, allocations: 0.5269 MB / 3.671 GB, free: 46.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003938/12.56, allocations: 17.34 kB / 3.671 GB, free: 46.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00153/12.56, allocations: 133.9 kB / 3.672 GB, free: 46.14 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002515/12.56, allocations: 85.67 kB / 3.672 GB, free: 46.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-05/12.56, allocations: 37.17 kB / 3.672 GB, free: 46.14 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001612/12.56, allocations: 0.7504 MB / 3.672 GB, free: 46.03 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.81e-07/12.56, allocations: 0 / 3.672 GB, free: 46.03 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009161/12.57, allocations: 1.727 MB / 3.674 GB, free: 45.91 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 () * Number of clocked 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.01743/12.59, allocations: 5.246 MB / 3.679 GB, free: 44.87 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007913/12.6, allocations: 2.604 MB / 3.682 GB, free: 44.83 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/12.6, allocations: 3.625 kB / 3.682 GB, free: 44.83 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002758/12.6, allocations: 1.438 MB / 3.683 GB, free: 44.82 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005662/12.61, allocations: 0.5744 MB / 3.684 GB, free: 44.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3663/12.97, allocations: 141.5 MB / 3.822 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001653/12.97, allocations: 1.651 MB / 3.823 GB, free: 14.12 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001654/12.98, allocations: 0.8792 MB / 3.824 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of SimCode: time 1.082e-06/12.98, allocations: 0 / 3.824 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.34/17.31, allocations: 52.48 MB / 3.876 GB, free: 59.32 MB / 0.5261 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