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/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.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.526/2.526, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.728e-05/3.748e-05, allocations: 7.984 kB / 309.8 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4111/0.4112, allocations: 54.85 MB / 364.6 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.208/8.62, allocations: 2.588 GB / 2.944 GB, free: 106.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003443/8.62, allocations: 80.69 kB / 2.944 GB, free: 106.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.163/9.783, allocations: 215.4 MB / 3.154 GB, free: 81.75 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.763e-06/9.783, allocations: 0 / 3.154 GB, free: 81.75 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.407e-05/9.783, allocations: 12.47 kB / 3.154 GB, free: 81.75 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.005874/9.789, allocations: 1.172 MB / 3.155 GB, free: 81.18 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/9.789, allocations: 7.062 kB / 3.155 GB, free: 81.18 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001189/9.79, allocations: 68 kB / 3.155 GB, free: 81.14 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002473/9.792, allocations: 218.9 kB / 3.156 GB, free: 81.12 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009193/9.793, allocations: 386.9 kB / 3.156 GB, free: 80.9 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.29e-05/9.793, allocations: 26.56 kB / 3.156 GB, free: 80.9 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.108e-05/9.793, allocations: 29.36 kB / 3.156 GB, free: 80.9 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001916/9.795, allocations: 0.5762 MB / 3.157 GB, free: 80.77 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.458e-05/9.795, allocations: 1.969 kB / 3.157 GB, free: 80.77 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.7e-05/9.795, allocations: 13.94 kB / 3.157 GB, free: 80.77 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/9.795, allocations: 7.906 kB / 3.157 GB, free: 80.77 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001695/9.797, allocations: 0.4885 MB / 3.157 GB, free: 80.76 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.003722/9.801, allocations: 2.538 MB / 3.16 GB, free: 78.89 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001753/9.802, allocations: 412.3 kB / 3.16 GB, free: 78.86 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003249/9.803, allocations: 124.8 kB / 3.16 GB, free: 78.86 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.181/9.984, allocations: 51.64 MB / 3.211 GB, free: 50.73 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/9.984, allocations: 35.38 kB / 3.211 GB, free: 50.69 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 3.397e-06/9.984, allocations: 3.656 kB / 3.211 GB, free: 50.69 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.002702/9.987, allocations: 0.6134 MB / 3.211 GB, free: 50.63 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/9.987, allocations: 106.4 kB / 3.211 GB, free: 50.51 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003657/9.987, allocations: 262.6 kB / 3.211 GB, free: 50.39 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.662e-05/9.987, allocations: 25.7 kB / 3.212 GB, free: 50.36 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/9.987, allocations: 265.8 kB / 3.212 GB, free: 50.18 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.354e-05/9.987, allocations: 88.97 kB / 3.212 GB, free: 50.13 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.603e-05/9.987, allocations: 7 kB / 3.212 GB, free: 50.13 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.454e-05/9.988, allocations: 326.9 kB / 3.212 GB, free: 49.82 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002383/9.988, allocations: 98.81 kB / 3.212 GB, free: 49.81 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000314/9.988, allocations: 218.2 kB / 3.212 GB, free: 49.66 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002762/9.988, allocations: 116.5 kB / 3.213 GB, free: 49.65 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/9.988, allocations: 0 / 3.213 GB, free: 49.65 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007883/9.989, allocations: 342.2 kB / 3.213 GB, free: 49.61 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/9.989, allocations: 6.5 kB / 3.213 GB, free: 49.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/9.989, allocations: 3.406 kB / 3.213 GB, free: 49.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.874e-05/9.989, allocations: 7.719 kB / 3.213 GB, free: 49.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006363/9.99, allocations: 94.98 kB / 3.213 GB, free: 49.61 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.548e-05/9.99, allocations: 7.625 kB / 3.213 GB, free: 49.61 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005753/9.991, allocations: 63.81 kB / 3.213 GB, free: 49.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.992e-05/9.991, allocations: 18.59 kB / 3.213 GB, free: 49.59 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: 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.0001346/9.991, allocations: 133.5 kB / 3.213 GB, free: 49.48 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.206e-05/9.991, allocations: 38.16 kB / 3.213 GB, free: 49.46 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002625/9.994, allocations: 1.828 MB / 3.215 GB, free: 49.25 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-05/9.994, allocations: 33.77 kB / 3.215 GB, free: 49.25 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/9.994, allocations: 0 / 3.215 GB, free: 49.25 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/9.994, allocations: 0 / 3.215 GB, free: 49.25 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001497/9.995, allocations: 0.9811 MB / 3.216 GB, free: 49 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/9.995, allocations: 4 kB / 3.216 GB, free: 49 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005791/9.996, allocations: 76.09 kB / 3.216 GB, free: 49 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.103e-05/9.996, allocations: 3.562 kB / 3.216 GB, free: 49 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.874e-05/9.996, allocations: 6.812 kB / 3.216 GB, free: 49 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.94e-06/9.996, allocations: 0 / 3.216 GB, free: 49 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/9.996, allocations: 7.938 kB / 3.216 GB, free: 49 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001562/9.998, allocations: 0.9809 MB / 3.217 GB, free: 48.78 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002907/9.998, allocations: 212.4 kB / 3.217 GB, free: 48.61 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.797e-05/9.998, allocations: 10.72 kB / 3.217 GB, free: 48.61 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005365/9.999, allocations: 39.86 kB / 3.217 GB, free: 48.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/9.999, allocations: 32.27 kB / 3.217 GB, free: 48.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.829e-05/9.999, allocations: 7.062 kB / 3.217 GB, free: 48.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004324/9.999, allocations: 258 kB / 3.218 GB, free: 48.51 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.81e-07/9.999, allocations: 0 / 3.218 GB, free: 48.51 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005588/10, allocations: 1.009 MB / 3.219 GB, free: 48.36 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: 19 ($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,Opening.y) * Number of discrete 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.01116/10.02, allocations: 2.815 MB / 3.221 GB, free: 47.38 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001079/10.02, allocations: 0.5022 MB / 3.222 GB, free: 47.37 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/10.02, allocations: 0 / 3.222 GB, free: 47.37 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006266/10.02, allocations: 476.6 kB / 3.222 GB, free: 47.37 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001666/10.02, allocations: 179.4 kB / 3.222 GB, free: 47.34 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2473/10.27, allocations: 76.76 MB / 3.297 GB, free: 12.52 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004518/10.27, allocations: 0.9797 MB / 3.298 GB, free: 11.52 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004274/10.27, allocations: 247.4 kB / 3.299 GB, free: 11.27 MB / 490.7 MB Notification: Performance of SimCode: time 1.693e-06/10.27, allocations: 0 / 3.299 GB, free: 11.27 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.94/14.21, allocations: 29.01 MB / 3.327 GB, free: 67.68 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