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.TestCheckValve.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.TestCheckValve,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.931/1.931, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004814/0.0004816, allocations: 8 kB / 282.7 MB, free: 9.562 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/0.3518, allocations: 48.7 MB / 331.4 MB, free: 6.414 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.154/7.506, allocations: 2.496 GB / 2.819 GB, free: 23.76 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002999/7.507, allocations: 85.7 kB / 2.819 GB, free: 23.71 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.461/8.967, allocations: 229 MB / 3.043 GB, free: 62.9 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.104e-06/8.967, allocations: 1.375 kB / 3.043 GB, free: 62.9 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.967e-05/8.967, allocations: 8.5 kB / 3.043 GB, free: 62.9 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.005835/8.973, allocations: 1.306 MB / 3.044 GB, free: 62.27 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/8.973, allocations: 7.844 kB / 3.044 GB, free: 62.27 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001264/8.973, allocations: 69.47 kB / 3.044 GB, free: 62.23 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002559/8.976, allocations: 235.6 kB / 3.045 GB, free: 62.21 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009283/8.977, allocations: 432.1 kB / 3.045 GB, free: 61.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.244e-05/8.977, allocations: 26.69 kB / 3.045 GB, free: 61.99 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.561e-05/8.977, allocations: 28.78 kB / 3.045 GB, free: 61.99 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002161/8.979, allocations: 0.6191 MB / 3.046 GB, free: 61.87 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/8.979, allocations: 0 / 3.046 GB, free: 61.87 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.555e-05/8.979, allocations: 18 kB / 3.046 GB, free: 61.87 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/8.979, allocations: 4.781 kB / 3.046 GB, free: 61.87 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002475/8.982, allocations: 0.6001 MB / 3.046 GB, free: 61.87 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003429/8.985, allocations: 2.559 MB / 3.049 GB, free: 60.05 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002079/8.987, allocations: 451.5 kB / 3.049 GB, free: 60.03 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1742/9.162, allocations: 51.31 MB / 3.099 GB, free: 31.82 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.273e-05/9.162, allocations: 30.56 kB / 3.099 GB, free: 31.78 MB / 442.7 MB Notification: Performance of pre-optimization done (n=25): time 2.975e-06/9.162, allocations: 0 / 3.099 GB, free: 31.78 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.00407/9.166, allocations: 0.8116 MB / 3.1 GB, free: 31.72 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.203e-05/9.166, allocations: 106.3 kB / 3.1 GB, free: 31.59 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005108/9.166, allocations: 309.4 kB / 3.101 GB, free: 31.48 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.565e-05/9.166, allocations: 29.39 kB / 3.101 GB, free: 31.45 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/9.167, allocations: 286 kB / 3.101 GB, free: 31.26 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.442e-05/9.167, allocations: 80.91 kB / 3.101 GB, free: 31.22 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.228e-05/9.167, allocations: 11.91 kB / 3.101 GB, free: 31.22 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.284e-05/9.167, allocations: 333.2 kB / 3.101 GB, free: 30.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006503/9.167, allocations: 162.8 kB / 3.101 GB, free: 30.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007168/9.168, allocations: 287 kB / 3.102 GB, free: 30.74 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007259/9.169, allocations: 183.4 kB / 3.102 GB, free: 30.73 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/9.169, allocations: 3.906 kB / 3.102 GB, free: 30.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0017/9.171, allocations: 498.9 kB / 3.102 GB, free: 30.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003443/9.171, allocations: 1.477 MB / 3.104 GB, free: 29.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/9.171, allocations: 3.906 kB / 3.104 GB, free: 29.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.13e-05/9.171, allocations: 11.55 kB / 3.104 GB, free: 29.13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007998/9.172, allocations: 123.7 kB / 3.104 GB, free: 29.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/9.172, allocations: 3.875 kB / 3.104 GB, free: 29.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008041/9.173, allocations: 80.19 kB / 3.104 GB, free: 29.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.392e-05/9.173, allocations: 22.48 kB / 3.104 GB, free: 29.11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/9.173, allocations: 4.719 kB / 3.104 GB, free: 29.11 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001581/9.174, allocations: 443 kB / 3.104 GB, free: 29.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/9.174, allocations: 3.938 kB / 3.104 GB, free: 29.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/9.175, allocations: 6.875 kB / 3.104 GB, free: 29.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000737/9.175, allocations: 126.6 kB / 3.105 GB, free: 29.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/9.175, allocations: 7.734 kB / 3.105 GB, free: 29.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005682/9.176, allocations: 61.84 kB / 3.105 GB, free: 29.08 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.832e-05/9.176, allocations: 23.03 kB / 3.105 GB, free: 29.08 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0003687/9.176, allocations: 241.7 kB / 3.105 GB, free: 28.89 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001384/9.176, allocations: 41.89 kB / 3.105 GB, free: 28.87 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003442/9.18, allocations: 1.959 MB / 3.107 GB, free: 28.61 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.952e-05/9.18, allocations: 30.25 kB / 3.107 GB, free: 28.61 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/9.18, allocations: 3.703 kB / 3.107 GB, free: 28.61 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/9.18, allocations: 8.844 kB / 3.107 GB, free: 28.61 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001447/9.181, allocations: 1.017 MB / 3.108 GB, free: 28.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/9.182, allocations: 0 / 3.108 GB, free: 28.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006031/9.182, allocations: 86.36 kB / 3.108 GB, free: 28.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.838e-06/9.182, allocations: 5.828 kB / 3.108 GB, free: 28.35 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.413e-05/9.182, allocations: 11.02 kB / 3.108 GB, free: 28.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.174e-06/9.182, allocations: 6.266 kB / 3.108 GB, free: 28.34 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/9.182, allocations: 3.781 kB / 3.108 GB, free: 28.34 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002111/9.184, allocations: 1.117 MB / 3.109 GB, free: 28.09 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003822/9.185, allocations: 248.2 kB / 3.109 GB, free: 27.92 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/9.185, allocations: 7.812 kB / 3.109 GB, free: 27.92 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005735/9.185, allocations: 55.92 kB / 3.109 GB, free: 27.91 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/9.186, allocations: 25.55 kB / 3.109 GB, free: 27.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.574e-05/9.186, allocations: 20.83 kB / 3.109 GB, free: 27.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005136/9.186, allocations: 307.9 kB / 3.11 GB, free: 27.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.51e-07/9.186, allocations: 4 kB / 3.11 GB, free: 27.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005969/9.192, allocations: 1.172 MB / 3.111 GB, free: 27.63 MB / 442.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: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse15.phase,$cse15.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.01305/9.205, allocations: 3.036 MB / 3.114 GB, free: 26.62 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002658/9.208, allocations: 0.8797 MB / 3.115 GB, free: 26.58 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/9.208, allocations: 0 / 3.115 GB, free: 26.58 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009826/9.209, allocations: 0.5316 MB / 3.115 GB, free: 26.57 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001702/9.211, allocations: 188.7 kB / 3.115 GB, free: 26.56 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5654/9.776, allocations: 79.21 MB / 3.193 GB, free: 54.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005755/9.777, allocations: 0.9983 MB / 3.194 GB, free: 53.93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005387/9.777, allocations: 273.4 kB / 3.194 GB, free: 53.92 MB / 442.7 MB Notification: Performance of SimCode: time 1.433e-06/9.777, allocations: 0 / 3.194 GB, free: 53.92 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.518/13.29, allocations: 29.86 MB / 3.223 GB, free: 52.64 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat does not exist to compare? outputFormat=mat