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.TestCheckValve.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.TestCheckValve,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.356/2.356, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004517/0.0004519, allocations: 16 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3552/0.3557, allocations: 54.85 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.806/8.162, allocations: 2.606 GB / 2.967 GB, free: 89.92 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003196/8.163, allocations: 86.7 kB / 2.967 GB, free: 89.88 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.278/9.44, allocations: 233.3 MB / 3.195 GB, free: 56.17 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.875e-06/9.44, allocations: 3.938 kB / 3.195 GB, free: 56.17 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.822e-05/9.44, allocations: 8 kB / 3.195 GB, free: 56.16 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.006219/9.447, allocations: 1.322 MB / 3.196 GB, free: 54.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/9.447, allocations: 19.83 kB / 3.196 GB, free: 54.79 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002122/9.447, allocations: 66.55 kB / 3.196 GB, free: 54.71 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002938/9.45, allocations: 242.3 kB / 3.197 GB, free: 54.48 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001166/9.451, allocations: 434.1 kB / 3.197 GB, free: 54.02 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.715e-05/9.451, allocations: 32.38 kB / 3.197 GB, free: 53.99 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.933e-05/9.451, allocations: 28 kB / 3.197 GB, free: 53.96 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002416/9.454, allocations: 0.6205 MB / 3.198 GB, free: 53.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.395e-05/9.454, allocations: 0 / 3.198 GB, free: 53.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.025e-05/9.454, allocations: 16 kB / 3.198 GB, free: 53.29 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/9.454, allocations: 8 kB / 3.198 GB, free: 53.28 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002555/9.456, allocations: 0.5953 MB / 3.198 GB, free: 52.68 MB / 490.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.003926/9.46, allocations: 2.562 MB / 3.201 GB, free: 49.89 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002224/9.463, allocations: 446.2 kB / 3.201 GB, free: 49.44 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5523/10.02, allocations: 51.34 MB / 3.251 GB, free: 75.93 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.813e-05/10.02, allocations: 41.11 kB / 3.251 GB, free: 75.89 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 3.727e-06/10.02, allocations: 0 / 3.251 GB, free: 75.89 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.006016/10.02, allocations: 0.8078 MB / 3.252 GB, free: 75.86 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.929e-05/10.02, allocations: 112.8 kB / 3.252 GB, free: 75.73 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008268/10.02, allocations: 310.5 kB / 3.253 GB, free: 75.62 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.005e-05/10.02, allocations: 29.77 kB / 3.253 GB, free: 75.59 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002359/10.02, allocations: 288 kB / 3.253 GB, free: 75.41 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000153/10.02, allocations: 86.17 kB / 3.253 GB, free: 75.38 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.754e-05/10.02, allocations: 7.906 kB / 3.253 GB, free: 75.38 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001018/10.02, allocations: 323 kB / 3.253 GB, free: 75.06 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/10.02, allocations: 158.9 kB / 3.253 GB, free: 75.06 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/10.03, allocations: 291.8 kB / 3.254 GB, free: 74.91 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/10.03, allocations: 196.4 kB / 3.254 GB, free: 74.91 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.226e-06/10.03, allocations: 1.062 kB / 3.254 GB, free: 74.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002501/10.03, allocations: 491.6 kB / 3.254 GB, free: 74.87 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004851/10.03, allocations: 1.486 MB / 3.256 GB, free: 73.33 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/10.03, allocations: 3.625 kB / 3.256 GB, free: 73.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.344e-05/10.03, allocations: 7.156 kB / 3.256 GB, free: 73.33 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/10.03, allocations: 114 kB / 3.256 GB, free: 73.33 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.988e-05/10.03, allocations: 7.219 kB / 3.256 GB, free: 73.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/10.03, allocations: 80.72 kB / 3.256 GB, free: 73.32 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.123e-05/10.03, allocations: 22.73 kB / 3.256 GB, free: 73.32 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/10.03, allocations: 4.125 kB / 3.256 GB, free: 73.32 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002276/10.03, allocations: 443.5 kB / 3.257 GB, free: 73.31 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/10.03, allocations: 5.188 kB / 3.257 GB, free: 73.31 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/10.03, allocations: 7.734 kB / 3.257 GB, free: 73.31 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/10.04, allocations: 119.3 kB / 3.257 GB, free: 73.31 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.92e-05/10.04, allocations: 10.52 kB / 3.257 GB, free: 73.31 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007742/10.04, allocations: 64.94 kB / 3.257 GB, free: 73.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.905e-05/10.04, allocations: 20.73 kB / 3.257 GB, free: 73.3 MB / 490.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.000448/10.04, allocations: 248.7 kB / 3.257 GB, free: 73.12 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000181/10.04, allocations: 43.67 kB / 3.257 GB, free: 73.09 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005348/10.04, allocations: 1.963 MB / 3.259 GB, free: 72.89 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-05/10.04, allocations: 31.59 kB / 3.259 GB, free: 72.89 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/10.04, allocations: 3.844 kB / 3.259 GB, free: 72.89 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/10.04, allocations: 0 / 3.259 GB, free: 72.89 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001955/10.04, allocations: 1.015 MB / 3.26 GB, free: 72.67 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/10.04, allocations: 2.062 kB / 3.26 GB, free: 72.67 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008045/10.05, allocations: 88.52 kB / 3.26 GB, free: 72.67 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.325e-05/10.05, allocations: 3.969 kB / 3.26 GB, free: 72.67 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.569e-05/10.05, allocations: 14.58 kB / 3.26 GB, free: 72.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/10.05, allocations: 0 / 3.26 GB, free: 72.66 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/10.05, allocations: 0 / 3.26 GB, free: 72.66 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002728/10.05, allocations: 1.118 MB / 3.261 GB, free: 72.42 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004551/10.05, allocations: 257.1 kB / 3.261 GB, free: 72.28 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001407/10.05, allocations: 6.969 kB / 3.261 GB, free: 72.28 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008001/10.05, allocations: 52.55 kB / 3.261 GB, free: 72.27 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/10.05, allocations: 27.47 kB / 3.261 GB, free: 72.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.151e-05/10.05, allocations: 13.41 kB / 3.261 GB, free: 72.27 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006853/10.05, allocations: 312.6 kB / 3.262 GB, free: 72.19 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.61e-07/10.05, allocations: 0 / 3.262 GB, free: 72.19 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007285/10.06, allocations: 1.181 MB / 3.263 GB, free: 72.18 MB / 490.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.01544/10.07, allocations: 3.029 MB / 3.266 GB, free: 71.39 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003554/10.08, allocations: 0.8766 MB / 3.267 GB, free: 71.38 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.495e-06/10.08, allocations: 0 / 3.267 GB, free: 71.38 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001361/10.08, allocations: 0.5305 MB / 3.267 GB, free: 71.37 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002237/10.08, allocations: 194.4 kB / 3.267 GB, free: 71.36 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.325/10.41, allocations: 80.49 MB / 3.346 GB, free: 64.95 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007149/10.41, allocations: 0.9965 MB / 3.347 GB, free: 64.24 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007137/10.41, allocations: 278.7 kB / 3.347 GB, free: 64.23 MB / 490.7 MB Notification: Performance of SimCode: time 3.837e-06/10.41, allocations: 0 / 3.347 GB, free: 64.23 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.647/14.05, allocations: 30.02 MB / 3.377 GB, free: 46.79 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat does not exist to compare? outputFormat=mat