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.TestValveIncompressible.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.TestValveIncompressible,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.461/2.461, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.437e-05/3.447e-05, allocations: 7.938 kB / 303.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3602/0.3603, allocations: 54.84 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.211/8.571, allocations: 2.607 GB / 2.957 GB, free: 122.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/8.572, allocations: 86.66 kB / 2.957 GB, free: 122.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.393/10.97, allocations: 0.4932 GB / 3.45 GB, free: 26.38 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.914e-06/10.97, allocations: 0 / 3.45 GB, free: 26.38 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.227e-05/10.97, allocations: 30.66 kB / 3.45 GB, free: 26.36 MB / 490.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.008879/10.97, allocations: 2.05 MB / 3.452 GB, free: 24.28 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/10.97, allocations: 12.03 kB / 3.452 GB, free: 24.27 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00828/10.98, allocations: 0.7168 MB / 3.453 GB, free: 23.55 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002589/10.99, allocations: 0.8593 MB / 3.453 GB, free: 22.67 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.894e-05/10.99, allocations: 40 kB / 3.453 GB, free: 22.63 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/10.99, allocations: 52 kB / 3.453 GB, free: 22.58 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00225/10.99, allocations: 0.906 MB / 3.454 GB, free: 21.68 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002169/10.99, allocations: 1.081 MB / 3.455 GB, free: 20.49 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.627e-05/10.99, allocations: 7.938 kB / 3.455 GB, free: 20.48 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001375/10.99, allocations: 4 kB / 3.455 GB, free: 20.48 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.428e-05/10.99, allocations: 24 kB / 3.455 GB, free: 20.46 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.311/12.3, allocations: 201.4 MB / 3.652 GB, free: 13.27 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009056/12.3, allocations: 412 kB / 3.653 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003899/12.3, allocations: 190.2 kB / 3.653 GB, free: 12.94 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06681/12.37, allocations: 16.3 MB / 3.669 GB, free: 14.24 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.665e-05/12.37, allocations: 44.83 kB / 3.669 GB, free: 14.2 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=43): time 3.787e-06/12.37, allocations: 0 / 3.669 GB, free: 14.2 MB / 0.5573 GB Notification: Performance of matching and sorting (n=43): time 0.006522/12.38, allocations: 1.252 MB / 3.67 GB, free: 13.5 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/12.38, allocations: 215.8 kB / 3.67 GB, free: 13.25 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001195/12.38, allocations: 0.6551 MB / 3.671 GB, free: 12.82 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001066/12.38, allocations: 25.7 kB / 3.671 GB, free: 12.79 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004452/12.38, allocations: 0.6214 MB / 3.671 GB, free: 12.39 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001959/12.38, allocations: 151.8 kB / 3.672 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.765e-05/12.38, allocations: 0 / 3.672 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001825/12.38, allocations: 350.8 kB / 3.672 GB, free: 11.97 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000611/12.38, allocations: 241.5 kB / 3.672 GB, free: 11.84 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009915/12.38, allocations: 0.6416 MB / 3.673 GB, free: 11.16 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003572/12.38, allocations: 0.5691 MB / 3.673 GB, free: 10.86 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.551e-05/12.38, allocations: 5.969 kB / 3.673 GB, free: 10.85 MB / 0.5573 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.005287/12.39, allocations: 1.097 MB / 3.674 GB, free: 10.19 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002467/12.39, allocations: 5.051 MB / 3.679 GB, free: 4.852 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-05/12.39, allocations: 12 kB / 3.679 GB, free: 4.84 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.183e-05/12.39, allocations: 20 kB / 3.679 GB, free: 4.82 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002097/12.39, allocations: 307.1 kB / 3.68 GB, free: 4.602 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.676e-05/12.39, allocations: 34.19 kB / 3.68 GB, free: 4.578 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002559/12.4, allocations: 247.8 kB / 3.68 GB, free: 4.398 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001745/12.4, allocations: 61.12 kB / 3.68 GB, free: 4.352 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/12.4, allocations: 4.141 kB / 3.68 GB, free: 4.352 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004204/12.4, allocations: 0.9376 MB / 3.681 GB, free: 3.809 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.425e-05/12.4, allocations: 12 kB / 3.681 GB, free: 3.797 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.707e-05/12.4, allocations: 24 kB / 3.681 GB, free: 3.773 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001822/12.4, allocations: 296.6 kB / 3.681 GB, free: 3.559 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.165e-05/12.4, allocations: 26.38 kB / 3.681 GB, free: 3.539 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001719/12.4, allocations: 177.3 kB / 3.681 GB, free: 3.414 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001473/12.41, allocations: 57.25 kB / 3.681 GB, free: 3.371 MB / 0.5573 GB 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 () * 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.0003313/12.41, allocations: 150.8 kB / 3.682 GB, free: 3.25 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003703/12.41, allocations: 0.6441 MB / 3.682 GB, free: 2.824 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002201/12.41, allocations: 98.88 kB / 3.682 GB, free: 2.727 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003521/12.41, allocations: 1.431 MB / 3.684 GB, free: 1.922 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-05/12.41, allocations: 9.406 kB / 3.684 GB, free: 1.914 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/12.41, allocations: 2.516 kB / 3.684 GB, free: 1.914 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.876e-06/12.41, allocations: 3.234 kB / 3.684 GB, free: 1.914 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002157/12.42, allocations: 1.07 MB / 3.685 GB, free: 1.395 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/12.42, allocations: 0 / 3.685 GB, free: 1.395 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007614/12.42, allocations: 107.1 kB / 3.685 GB, free: 1.32 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.057e-06/12.42, allocations: 0 / 3.685 GB, free: 1.32 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.309e-05/12.42, allocations: 8 kB / 3.685 GB, free: 1.312 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/12.42, allocations: 0 / 3.685 GB, free: 1.312 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/12.42, allocations: 1.312 kB / 3.685 GB, free: 1.312 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002023/12.42, allocations: 0.602 MB / 3.685 GB, free: 0.8359 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00109/12.42, allocations: 0.4905 MB / 3.686 GB, free: 0.5469 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003261/12.42, allocations: 0 / 3.686 GB, free: 0.5469 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/12.42, allocations: 73.44 kB / 3.686 GB, free: 0.4922 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/12.42, allocations: 25.77 kB / 3.686 GB, free: 492 kB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.915e-05/12.42, allocations: 21.23 kB / 3.686 GB, free: 480 kB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.4511/12.87, allocations: 1.106 MB / 3.687 GB, free: 121.3 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.482e-06/12.87, allocations: 1 kB / 3.687 GB, free: 121.3 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.009149/12.88, allocations: 1.557 MB / 3.689 GB, free: 121.3 MB / 0.5573 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 (46): * Single equations (assignments): 46 * 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.01331/12.89, allocations: 2.962 MB / 3.692 GB, free: 120.6 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002498/12.9, allocations: 0.961 MB / 3.692 GB, free: 120.6 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.947e-06/12.9, allocations: 3.188 kB / 3.692 GB, free: 120.6 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0003448/12.9, allocations: 141.2 kB / 3.693 GB, free: 120.6 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003657/12.9, allocations: 370.1 kB / 3.693 GB, free: 120.6 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008444/12.91, allocations: 1.91 MB / 3.695 GB, free: 120.1 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006892/12.91, allocations: 1.184 MB / 3.696 GB, free: 119.4 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00101/12.91, allocations: 0.5279 MB / 3.696 GB, free: 119.4 MB / 0.5573 GB Notification: Performance of SimCode: time 1.442e-06/12.91, allocations: 4.781 kB / 3.696 GB, free: 119.4 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.044/16.96, allocations: 43.51 MB / 3.739 GB, free: 116.2 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat does not exist to compare? outputFormat=mat