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/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.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.473/2.473, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.21e-05/2.209e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3621/0.3622, allocations: 54.84 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.938/8.3, allocations: 2.606 GB / 2.955 GB, free: 122 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/8.3, allocations: 80.05 kB / 2.955 GB, free: 122 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.203/9.504, allocations: 229.7 MB / 3.18 GB, free: 83.61 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.784e-06/9.504, allocations: 3.938 kB / 3.18 GB, free: 83.61 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.261e-05/9.504, allocations: 11.19 kB / 3.18 GB, free: 83.6 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.006205/9.51, allocations: 1.271 MB / 3.181 GB, free: 82.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/9.51, allocations: 10.38 kB / 3.181 GB, free: 82.8 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0029/9.513, allocations: 251 kB / 3.181 GB, free: 82.77 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001153/9.514, allocations: 430.5 kB / 3.182 GB, free: 82.46 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.122e-05/9.514, allocations: 18.83 kB / 3.182 GB, free: 82.46 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.224e-05/9.514, allocations: 18.38 kB / 3.182 GB, free: 82.46 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008328/9.515, allocations: 335.1 kB / 3.182 GB, free: 82.33 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008163/9.516, allocations: 400.5 kB / 3.182 GB, free: 82.12 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/9.516, allocations: 0 / 3.182 GB, free: 82.12 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.868e-05/9.516, allocations: 0 / 3.182 GB, free: 82.12 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/9.516, allocations: 7.812 kB / 3.182 GB, free: 82.12 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.00831/9.525, allocations: 3.902 MB / 3.186 GB, free: 79.12 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006077/9.525, allocations: 226.9 kB / 3.187 GB, free: 79.02 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002528/9.525, allocations: 127 kB / 3.187 GB, free: 78.97 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1736/9.699, allocations: 50.23 MB / 3.236 GB, free: 50.08 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.729e-05/9.699, allocations: 49.69 kB / 3.236 GB, free: 50.02 MB / 490.7 MB Notification: Performance of pre-optimization done (n=24): time 2.896e-06/9.699, allocations: 3.938 kB / 3.236 GB, free: 50.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=24): time 0.002936/9.702, allocations: 0.5422 MB / 3.236 GB, free: 49.71 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.669e-05/9.702, allocations: 110.7 kB / 3.236 GB, free: 49.58 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004466/9.703, allocations: 281.7 kB / 3.237 GB, free: 49.32 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 6.08e-05/9.703, allocations: 36.83 kB / 3.237 GB, free: 49.28 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/9.703, allocations: 284.3 kB / 3.237 GB, free: 49.01 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.32e-05/9.703, allocations: 80.88 kB / 3.237 GB, free: 48.94 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.731e-05/9.703, allocations: 0 / 3.237 GB, free: 48.94 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.8e-05/9.703, allocations: 324.6 kB / 3.237 GB, free: 48.62 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002802/9.704, allocations: 102.5 kB / 3.237 GB, free: 48.52 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003027/9.704, allocations: 232.1 kB / 3.238 GB, free: 48.25 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001366/9.705, allocations: 214.5 kB / 3.238 GB, free: 48.08 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/9.705, allocations: 7.938 kB / 3.238 GB, free: 48.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001909/9.707, allocations: 436.9 kB / 3.238 GB, free: 47.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003621/9.708, allocations: 1.494 MB / 3.24 GB, free: 46.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/9.708, allocations: 4 kB / 3.24 GB, free: 46.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.823e-05/9.708, allocations: 4 kB / 3.24 GB, free: 46.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009075/9.709, allocations: 115.8 kB / 3.24 GB, free: 45.99 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/9.709, allocations: 12 kB / 3.24 GB, free: 45.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008227/9.709, allocations: 64.91 kB / 3.24 GB, free: 45.93 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.331e-05/9.71, allocations: 24 kB / 3.24 GB, free: 45.91 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/9.71, allocations: 5.406 kB / 3.24 GB, free: 45.9 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00165/9.711, allocations: 367.9 kB / 3.24 GB, free: 45.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/9.711, allocations: 4 kB / 3.24 GB, free: 45.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/9.711, allocations: 12.03 kB / 3.24 GB, free: 45.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008155/9.712, allocations: 111 kB / 3.24 GB, free: 45.48 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/9.712, allocations: 11 kB / 3.24 GB, free: 45.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006055/9.713, allocations: 61.16 kB / 3.241 GB, free: 45.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.471e-05/9.713, allocations: 23.47 kB / 3.241 GB, free: 45.41 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 () * 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.000182/9.713, allocations: 120.8 kB / 3.241 GB, free: 45.28 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001696/9.715, allocations: 332.4 kB / 3.241 GB, free: 44.99 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.223e-05/9.715, allocations: 35.62 kB / 3.241 GB, free: 44.96 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003352/9.718, allocations: 1.698 MB / 3.243 GB, free: 43.45 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.055e-05/9.718, allocations: 30.39 kB / 3.243 GB, free: 43.43 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/9.718, allocations: 0 / 3.243 GB, free: 43.43 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/9.718, allocations: 7.953 kB / 3.243 GB, free: 43.42 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/9.72, allocations: 0.8561 MB / 3.244 GB, free: 42.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/9.72, allocations: 0 / 3.244 GB, free: 42.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006467/9.72, allocations: 80.22 kB / 3.244 GB, free: 42.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.188e-05/9.721, allocations: 7.938 kB / 3.244 GB, free: 42.59 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.504e-05/9.721, allocations: 4 kB / 3.244 GB, free: 42.59 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.03e-06/9.721, allocations: 4 kB / 3.244 GB, free: 42.58 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/9.721, allocations: 0 / 3.244 GB, free: 42.58 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002095/9.723, allocations: 0.9797 MB / 3.245 GB, free: 41.68 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004092/9.723, allocations: 253.6 kB / 3.245 GB, free: 41.45 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/9.723, allocations: 0 / 3.245 GB, free: 41.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006385/9.724, allocations: 37.05 kB / 3.245 GB, free: 41.42 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/9.724, allocations: 35 kB / 3.245 GB, free: 41.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-05/9.724, allocations: 12 kB / 3.245 GB, free: 41.38 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004475/9.725, allocations: 287.6 kB / 3.245 GB, free: 41.12 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.11e-07/9.725, allocations: 0 / 3.245 GB, free: 41.12 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005787/9.73, allocations: 1.161 MB / 3.246 GB, free: 39.99 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: 16 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.01304/9.743, allocations: 2.952 MB / 3.249 GB, free: 37.36 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001469/9.745, allocations: 0.6562 MB / 3.25 GB, free: 36.75 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/9.745, allocations: 2 kB / 3.25 GB, free: 36.75 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006022/9.746, allocations: 425.9 kB / 3.25 GB, free: 36.36 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001817/9.747, allocations: 179.3 kB / 3.25 GB, free: 36.23 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5748/10.32, allocations: 54.91 MB / 3.304 GB, free: 74.68 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004409/10.32, allocations: 0.9776 MB / 3.305 GB, free: 73.98 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004551/10.32, allocations: 259.1 kB / 3.305 GB, free: 73.98 MB / 490.7 MB Notification: Performance of SimCode: time 1.714e-06/10.32, allocations: 2.297 kB / 3.305 GB, free: 73.98 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.662/13.99, allocations: 31.1 MB / 3.336 GB, free: 72.26 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