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.TestValveLinear.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.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.468/2.468, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004451/0.0004454, allocations: 12 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.365/0.3655, allocations: 54.86 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.791/8.157, allocations: 2.587 GB / 2.948 GB, free: 109.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/8.157, allocations: 89.16 kB / 2.948 GB, free: 109.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.188/9.345, allocations: 216.2 MB / 3.159 GB, free: 82.5 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.044e-06/9.345, allocations: 0 / 3.159 GB, free: 82.5 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.883e-05/9.345, allocations: 7.562 kB / 3.159 GB, free: 82.5 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.005848/9.351, allocations: 1.221 MB / 3.161 GB, free: 81.72 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/9.351, allocations: 13.25 kB / 3.161 GB, free: 81.72 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001344/9.351, allocations: 73.47 kB / 3.161 GB, free: 81.66 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002416/9.354, allocations: 218.9 kB / 3.161 GB, free: 81.62 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008103/9.355, allocations: 390 kB / 3.161 GB, free: 81.34 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.35e-05/9.355, allocations: 28.09 kB / 3.161 GB, free: 81.32 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.621e-05/9.355, allocations: 27.78 kB / 3.161 GB, free: 81.32 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002309/9.357, allocations: 0.6132 MB / 3.162 GB, free: 81.05 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/9.357, allocations: 0 / 3.162 GB, free: 81.05 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.193e-05/9.357, allocations: 11.91 kB / 3.162 GB, free: 81.04 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/9.357, allocations: 7.719 kB / 3.162 GB, free: 81.04 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00261/9.36, allocations: 0.5917 MB / 3.162 GB, free: 80.91 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.003514/9.363, allocations: 2.534 MB / 3.165 GB, free: 78.73 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002365/9.366, allocations: 468.9 kB / 3.165 GB, free: 78.62 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1791/9.545, allocations: 51.36 MB / 3.216 GB, free: 30.66 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/9.545, allocations: 34.56 kB / 3.216 GB, free: 30.62 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 2.615e-06/9.545, allocations: 0 / 3.216 GB, free: 30.62 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.004223/9.549, allocations: 0.8248 MB / 3.216 GB, free: 29.79 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/9.549, allocations: 106.8 kB / 3.216 GB, free: 29.66 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003768/9.55, allocations: 267.5 kB / 3.217 GB, free: 29.39 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.353e-05/9.55, allocations: 29.7 kB / 3.217 GB, free: 29.35 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/9.55, allocations: 262.4 kB / 3.217 GB, free: 29.09 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.813e-05/9.55, allocations: 89.88 kB / 3.217 GB, free: 29 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.602e-05/9.55, allocations: 4 kB / 3.217 GB, free: 29 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.627e-05/9.55, allocations: 330.8 kB / 3.217 GB, free: 28.67 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006875/9.551, allocations: 152.5 kB / 3.218 GB, free: 28.52 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000756/9.552, allocations: 276.6 kB / 3.218 GB, free: 28.19 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007163/9.552, allocations: 178 kB / 3.218 GB, free: 28.02 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/9.552, allocations: 4 kB / 3.218 GB, free: 28.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001694/9.554, allocations: 469 kB / 3.218 GB, free: 27.55 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/9.554, allocations: 4 kB / 3.218 GB, free: 27.55 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/9.554, allocations: 4 kB / 3.218 GB, free: 27.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.135e-05/9.554, allocations: 8 kB / 3.218 GB, free: 27.54 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000667/9.555, allocations: 108.2 kB / 3.219 GB, free: 27.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/9.555, allocations: 4 kB / 3.219 GB, free: 27.43 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006414/9.556, allocations: 83.48 kB / 3.219 GB, free: 27.34 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.759e-05/9.556, allocations: 27.92 kB / 3.219 GB, free: 27.32 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.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 (40): * Single equations (assignments): 40 * 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.0002787/9.556, allocations: 169.6 kB / 3.219 GB, free: 27.14 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.462e-05/9.556, allocations: 31.62 kB / 3.219 GB, free: 27.11 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003436/9.56, allocations: 1.916 MB / 3.221 GB, free: 25.19 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.642e-05/9.56, allocations: 27.95 kB / 3.221 GB, free: 25.16 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/9.56, allocations: 4 kB / 3.221 GB, free: 25.16 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/9.56, allocations: 3.984 kB / 3.221 GB, free: 25.15 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001351/9.561, allocations: 0.9745 MB / 3.222 GB, free: 24.13 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/9.561, allocations: 7.938 kB / 3.222 GB, free: 24.12 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005995/9.562, allocations: 87.92 kB / 3.222 GB, free: 24.04 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-06/9.562, allocations: 4 kB / 3.222 GB, free: 24.04 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.919e-05/9.562, allocations: 8 kB / 3.222 GB, free: 24.03 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/9.562, allocations: 0 / 3.222 GB, free: 24.03 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/9.562, allocations: 0 / 3.222 GB, free: 24.03 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002246/9.564, allocations: 1.108 MB / 3.223 GB, free: 22.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002387/9.564, allocations: 211.6 kB / 3.223 GB, free: 22.67 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.081e-05/9.564, allocations: 12 kB / 3.223 GB, free: 22.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005425/9.565, allocations: 43.91 kB / 3.223 GB, free: 22.62 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/9.565, allocations: 39.94 kB / 3.223 GB, free: 22.58 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.362e-05/9.565, allocations: 8 kB / 3.223 GB, free: 22.57 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003887/9.565, allocations: 263.1 kB / 3.223 GB, free: 22.31 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.41e-07/9.566, allocations: 3.938 kB / 3.223 GB, free: 22.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005315/9.571, allocations: 1.014 MB / 3.224 GB, free: 21.29 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,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.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 (35): * Single equations (assignments): 26 * 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.01326/9.584, allocations: 2.933 MB / 3.227 GB, free: 18.47 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002454/9.587, allocations: 0.6227 MB / 3.228 GB, free: 17.85 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/9.587, allocations: 4 kB / 3.228 GB, free: 17.84 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001469/9.588, allocations: 0.5253 MB / 3.228 GB, free: 17.32 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002263/9.59, allocations: 179.6 kB / 3.229 GB, free: 17.15 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6287/10.22, allocations: 81.13 MB / 3.308 GB, free: 79.63 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004737/10.22, allocations: 0.9832 MB / 3.309 GB, free: 78.91 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000439/10.22, allocations: 251 kB / 3.309 GB, free: 78.91 MB / 490.7 MB Notification: Performance of SimCode: time 1.352e-06/10.22, allocations: 3.906 kB / 3.309 GB, free: 78.91 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.598/13.82, allocations: 28.47 MB / 3.337 GB, free: 75.88 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat does not exist to compare? outputFormat=mat