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/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.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.409/2.409, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.914e-05/2.932e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.36, allocations: 54.86 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.843/8.203, allocations: 2.587 GB / 2.936 GB, free: 115.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003538/8.204, allocations: 82.58 kB / 2.937 GB, free: 115.9 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.132/9.335, allocations: 212.8 MB / 3.144 GB, free: 87.99 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.014e-06/9.335, allocations: 0 / 3.144 GB, free: 87.99 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.356e-05/9.335, allocations: 11.56 kB / 3.144 GB, free: 87.98 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.005865/9.341, allocations: 1.18 MB / 3.145 GB, free: 87.38 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/9.341, allocations: 10.25 kB / 3.146 GB, free: 87.38 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002495/9.344, allocations: 231.7 kB / 3.146 GB, free: 87.36 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009438/9.345, allocations: 380.6 kB / 3.146 GB, free: 87.15 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.398e-05/9.345, allocations: 12.3 kB / 3.146 GB, free: 87.15 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.602e-05/9.345, allocations: 15.78 kB / 3.146 GB, free: 87.15 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007619/9.346, allocations: 304.1 kB / 3.146 GB, free: 87.14 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007488/9.347, allocations: 384.3 kB / 3.147 GB, free: 87.01 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/9.347, allocations: 0 / 3.147 GB, free: 87.01 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.482e-05/9.347, allocations: 3.719 kB / 3.147 GB, free: 87.01 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/9.347, allocations: 7.312 kB / 3.147 GB, free: 87.01 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.007936/9.355, allocations: 3.898 MB / 3.151 GB, free: 84.31 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005894/9.355, allocations: 230.3 kB / 3.151 GB, free: 84.29 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002368/9.356, allocations: 111.7 kB / 3.151 GB, free: 84.28 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1738/9.529, allocations: 50.24 MB / 3.2 GB, free: 56.82 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.662e-05/9.529, allocations: 37.06 kB / 3.2 GB, free: 56.78 MB / 490.7 MB Notification: Performance of pre-optimization done (n=24): time 2.695e-06/9.529, allocations: 0 / 3.2 GB, free: 56.78 MB / 490.7 MB Notification: Performance of matching and sorting (n=24): time 0.002454/9.532, allocations: 0.5103 MB / 3.201 GB, free: 56.72 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.12e-05/9.532, allocations: 102.8 kB / 3.201 GB, free: 56.59 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003344/9.532, allocations: 239.5 kB / 3.201 GB, free: 56.49 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.817e-05/9.532, allocations: 29.61 kB / 3.201 GB, free: 56.46 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/9.532, allocations: 274.1 kB / 3.201 GB, free: 56.27 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.336e-05/9.533, allocations: 79.16 kB / 3.201 GB, free: 56.23 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-05/9.533, allocations: 0 / 3.201 GB, free: 56.23 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.256e-05/9.533, allocations: 329.7 kB / 3.202 GB, free: 55.91 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002168/9.533, allocations: 86.41 kB / 3.202 GB, free: 55.91 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002728/9.533, allocations: 207.2 kB / 3.202 GB, free: 55.76 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00094/9.534, allocations: 170.9 kB / 3.202 GB, free: 55.75 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/9.534, allocations: 3.875 kB / 3.202 GB, free: 55.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001379/9.536, allocations: 363 kB / 3.202 GB, free: 55.71 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.741e-05/9.536, allocations: 13.38 kB / 3.202 GB, free: 55.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/9.536, allocations: 3.906 kB / 3.202 GB, free: 55.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.316e-05/9.536, allocations: 3.906 kB / 3.202 GB, free: 55.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007144/9.536, allocations: 105.3 kB / 3.202 GB, free: 55.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/9.536, allocations: 9 kB / 3.202 GB, free: 55.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006453/9.537, allocations: 68.08 kB / 3.203 GB, free: 55.69 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-05/9.537, allocations: 17.94 kB / 3.203 GB, free: 55.69 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 () * 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.0001246/9.537, allocations: 126.2 kB / 3.203 GB, free: 55.58 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001195/9.539, allocations: 295.6 kB / 3.203 GB, free: 55.53 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.568e-05/9.539, allocations: 29.31 kB / 3.203 GB, free: 55.51 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002602/9.541, allocations: 1.626 MB / 3.205 GB, free: 55.27 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.605e-05/9.541, allocations: 27.78 kB / 3.205 GB, free: 55.27 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/9.541, allocations: 3.156 kB / 3.205 GB, free: 55.27 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/9.541, allocations: 0 / 3.205 GB, free: 55.27 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001177/9.543, allocations: 0.8206 MB / 3.205 GB, free: 55.05 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/9.543, allocations: 4 kB / 3.205 GB, free: 55.05 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006104/9.543, allocations: 85.59 kB / 3.205 GB, free: 55.05 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/9.543, allocations: 3.938 kB / 3.205 GB, free: 55.05 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.535e-05/9.543, allocations: 3.969 kB / 3.205 GB, free: 55.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/9.543, allocations: 4 kB / 3.205 GB, free: 55.04 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/9.543, allocations: 8.969 kB / 3.205 GB, free: 55.04 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/9.545, allocations: 0.9195 MB / 3.206 GB, free: 54.83 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002509/9.545, allocations: 208.5 kB / 3.207 GB, free: 54.66 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.948e-05/9.545, allocations: 3.844 kB / 3.207 GB, free: 54.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005369/9.546, allocations: 38.36 kB / 3.207 GB, free: 54.66 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/9.546, allocations: 28.98 kB / 3.207 GB, free: 54.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.392e-05/9.546, allocations: 14.73 kB / 3.207 GB, free: 54.66 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003755/9.546, allocations: 258.2 kB / 3.207 GB, free: 54.57 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.81e-07/9.546, allocations: 0 / 3.207 GB, free: 54.57 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005625/9.552, allocations: 0.9921 MB / 3.208 GB, free: 54.41 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,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 25 * 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.01146/9.564, allocations: 2.807 MB / 3.211 GB, free: 53.45 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0009369/9.565, allocations: 456.2 kB / 3.211 GB, free: 53.44 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/9.565, allocations: 0 / 3.211 GB, free: 53.44 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005504/9.565, allocations: 417.9 kB / 3.211 GB, free: 53.44 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001532/9.567, allocations: 169.1 kB / 3.212 GB, free: 53.43 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1965/9.763, allocations: 54.83 MB / 3.265 GB, free: 26.43 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004193/9.764, allocations: 0.9606 MB / 3.266 GB, free: 25.54 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000419/9.764, allocations: 242.2 kB / 3.266 GB, free: 25.33 MB / 490.7 MB Notification: Performance of SimCode: time 7.91e-07/9.764, allocations: 4 kB / 3.266 GB, free: 25.32 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.185/13.95, allocations: 29.43 MB / 3.295 GB, free: 82.14 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