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.TestValveDiscrete.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.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.508/2.508, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.479e-05/2.475e-05, allocations: 4 kB / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3988/0.3988, allocations: 54.86 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.134/8.533, allocations: 2.587 GB / 2.937 GB, free: 108 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003113/8.534, allocations: 86.02 kB / 2.937 GB, free: 108 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.156/9.69, allocations: 212.7 MB / 3.145 GB, free: 74.81 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.557e-06/9.69, allocations: 0 / 3.145 GB, free: 74.81 MB / 474.7 MB Notification: Performance of Transformations before backend: time 3.38e-05/9.69, allocations: 15.78 kB / 3.145 GB, free: 74.8 MB / 474.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.005916/9.696, allocations: 1.154 MB / 3.146 GB, free: 74.12 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/9.696, allocations: 8.531 kB / 3.146 GB, free: 74.12 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002547/9.699, allocations: 229.7 kB / 3.146 GB, free: 74.09 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/9.7, allocations: 389.3 kB / 3.146 GB, free: 73.8 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.957e-05/9.7, allocations: 14.98 kB / 3.146 GB, free: 73.8 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.289e-05/9.7, allocations: 18.84 kB / 3.146 GB, free: 73.8 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007689/9.701, allocations: 300.2 kB / 3.147 GB, free: 73.69 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000755/9.701, allocations: 381.6 kB / 3.147 GB, free: 73.46 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/9.702, allocations: 3.938 kB / 3.147 GB, free: 73.46 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.649e-05/9.702, allocations: 0 / 3.147 GB, free: 73.46 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/9.702, allocations: 7.844 kB / 3.147 GB, free: 73.46 MB / 474.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.008261/9.71, allocations: 3.885 MB / 3.151 GB, free: 70.43 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006319/9.711, allocations: 232.6 kB / 3.151 GB, free: 70.33 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002452/9.711, allocations: 116.8 kB / 3.151 GB, free: 70.28 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1763/9.887, allocations: 50.23 MB / 3.2 GB, free: 41.34 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.816e-05/9.887, allocations: 38.12 kB / 3.2 GB, free: 41.3 MB / 474.7 MB Notification: Performance of pre-optimization done (n=24): time 4.148e-06/9.887, allocations: 0 / 3.2 GB, free: 41.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=24): time 0.00246/9.89, allocations: 0.5041 MB / 3.201 GB, free: 40.93 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/9.89, allocations: 102.8 kB / 3.201 GB, free: 40.8 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003384/9.89, allocations: 246.2 kB / 3.201 GB, free: 40.57 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/9.89, allocations: 25.7 kB / 3.201 GB, free: 40.54 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/9.89, allocations: 279.2 kB / 3.201 GB, free: 40.28 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.22e-05/9.89, allocations: 78.58 kB / 3.201 GB, free: 40.21 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.263e-05/9.89, allocations: 4 kB / 3.201 GB, free: 40.21 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 7.279e-05/9.891, allocations: 326.7 kB / 3.202 GB, free: 39.88 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/9.891, allocations: 88.25 kB / 3.202 GB, free: 39.8 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002561/9.891, allocations: 199.6 kB / 3.202 GB, free: 39.56 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009048/9.892, allocations: 170.3 kB / 3.202 GB, free: 39.42 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/9.892, allocations: 0 / 3.202 GB, free: 39.42 MB / 474.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001312/9.893, allocations: 361.9 kB / 3.202 GB, free: 39.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/9.893, allocations: 5.562 kB / 3.202 GB, free: 39.09 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/9.893, allocations: 4 kB / 3.202 GB, free: 39.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.545e-05/9.893, allocations: 8 kB / 3.202 GB, free: 39.08 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006467/9.894, allocations: 99.67 kB / 3.203 GB, free: 39 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/9.894, allocations: 15.94 kB / 3.203 GB, free: 38.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005549/9.895, allocations: 56.94 kB / 3.203 GB, free: 38.94 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.366e-05/9.895, allocations: 23.75 kB / 3.203 GB, free: 38.92 MB / 474.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: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,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.0001212/9.895, allocations: 120.8 kB / 3.203 GB, free: 38.79 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001152/9.896, allocations: 295.1 kB / 3.203 GB, free: 38.53 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.43e-05/9.896, allocations: 27.72 kB / 3.203 GB, free: 38.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002539/9.899, allocations: 1.62 MB / 3.205 GB, free: 37.04 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.51e-05/9.899, allocations: 29.78 kB / 3.205 GB, free: 37.03 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/9.899, allocations: 0 / 3.205 GB, free: 37.03 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/9.899, allocations: 3.469 kB / 3.205 GB, free: 37.03 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/9.9, allocations: 0.8244 MB / 3.205 GB, free: 36.28 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/9.9, allocations: 0 / 3.205 GB, free: 36.28 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005444/9.9, allocations: 82.27 kB / 3.206 GB, free: 36.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.717e-06/9.9, allocations: 4 kB / 3.206 GB, free: 36.21 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.439e-05/9.9, allocations: 3.047 kB / 3.206 GB, free: 36.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/9.9, allocations: 4 kB / 3.206 GB, free: 36.21 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/9.9, allocations: 4 kB / 3.206 GB, free: 36.2 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/9.902, allocations: 0.9169 MB / 3.206 GB, free: 35.36 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002373/9.902, allocations: 209.1 kB / 3.207 GB, free: 35.15 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.097e-05/9.902, allocations: 4 kB / 3.207 GB, free: 35.14 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004844/9.903, allocations: 31.41 kB / 3.207 GB, free: 35.12 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/9.903, allocations: 35.19 kB / 3.207 GB, free: 35.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.011e-05/9.903, allocations: 8 kB / 3.207 GB, free: 35.09 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003583/9.903, allocations: 258.7 kB / 3.207 GB, free: 34.86 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.71e-07/9.903, allocations: 0 / 3.207 GB, free: 34.86 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005284/9.909, allocations: 0.9879 MB / 3.208 GB, free: 33.9 MB / 474.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: 17 ($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,Opening.y) * 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.01129/9.92, allocations: 2.788 MB / 3.211 GB, free: 31.41 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001003/9.921, allocations: 466.7 kB / 3.211 GB, free: 30.98 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/9.921, allocations: 0 / 3.211 GB, free: 30.98 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00056/9.922, allocations: 425 kB / 3.212 GB, free: 30.59 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001614/9.923, allocations: 156.5 kB / 3.212 GB, free: 30.48 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5493/10.47, allocations: 54.81 MB / 3.265 GB, free: 82.36 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005855/10.47, allocations: 0.9577 MB / 3.266 GB, free: 81.66 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004629/10.47, allocations: 245.5 kB / 3.266 GB, free: 81.65 MB / 490.7 MB Notification: Performance of SimCode: time 9.41e-07/10.47, allocations: 1.156 kB / 3.266 GB, free: 81.65 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.525/14, allocations: 29.39 MB / 3.295 GB, free: 80.29 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat