Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.007/2.007, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000453/0.0004531, allocations: 12 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.3635, allocations: 48.7 MB / 331.4 MB, free: 6.539 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.922/7.285, allocations: 2.477 GB / 2.801 GB, free: 45.9 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002907/7.286, allocations: 90.89 kB / 2.801 GB, free: 45.85 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.114/8.4, allocations: 212.2 MB / 3.008 GB, free: 20.71 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.514e-06/8.4, allocations: 7.938 kB / 3.008 GB, free: 20.7 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.991e-05/8.4, allocations: 4 kB / 3.008 GB, free: 20.7 MB / 442.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.005772/8.406, allocations: 1.194 MB / 3.009 GB, free: 19.46 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/8.406, allocations: 12.03 kB / 3.009 GB, free: 19.45 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001701/8.406, allocations: 62.53 kB / 3.009 GB, free: 19.38 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002537/8.408, allocations: 215.6 kB / 3.009 GB, free: 19.16 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009161/8.409, allocations: 382.7 kB / 3.01 GB, free: 18.75 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.162e-05/8.409, allocations: 28.66 kB / 3.01 GB, free: 18.72 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.054e-05/8.41, allocations: 24 kB / 3.01 GB, free: 18.7 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002341/8.412, allocations: 0.6003 MB / 3.01 GB, free: 18.05 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.942e-05/8.412, allocations: 7.938 kB / 3.01 GB, free: 18.05 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.304e-05/8.412, allocations: 12 kB / 3.01 GB, free: 18.04 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/8.412, allocations: 8 kB / 3.01 GB, free: 18.03 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002545/8.415, allocations: 0.5524 MB / 3.011 GB, free: 17.48 MB / 442.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.003561/8.418, allocations: 2.539 MB / 3.013 GB, free: 14.7 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002281/8.421, allocations: 454.2 kB / 3.014 GB, free: 14.25 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.534/8.955, allocations: 51.29 MB / 3.064 GB, free: 48.48 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/8.955, allocations: 37.84 kB / 3.064 GB, free: 48.44 MB / 442.7 MB Notification: Performance of pre-optimization done (n=25): time 3.146e-06/8.955, allocations: 3.719 kB / 3.064 GB, free: 48.44 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.003915/8.959, allocations: 0.7841 MB / 3.065 GB, free: 48.41 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/8.959, allocations: 111.8 kB / 3.065 GB, free: 48.29 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000367/8.959, allocations: 256 kB / 3.065 GB, free: 48.19 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.366e-05/8.959, allocations: 28.58 kB / 3.065 GB, free: 48.16 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/8.959, allocations: 271.6 kB / 3.065 GB, free: 47.97 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.755e-05/8.959, allocations: 85.61 kB / 3.065 GB, free: 47.93 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.709e-05/8.959, allocations: 6.969 kB / 3.065 GB, free: 47.93 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.68e-05/8.96, allocations: 327.9 kB / 3.066 GB, free: 47.62 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005991/8.96, allocations: 141.7 kB / 3.066 GB, free: 47.61 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006558/8.961, allocations: 264.9 kB / 3.066 GB, free: 47.47 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000627/8.961, allocations: 168.8 kB / 3.066 GB, free: 47.47 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/8.961, allocations: 0 / 3.066 GB, free: 47.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001527/8.963, allocations: 431.9 kB / 3.067 GB, free: 47.43 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/8.963, allocations: 7.844 kB / 3.067 GB, free: 47.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/8.963, allocations: 3.906 kB / 3.067 GB, free: 47.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.846e-05/8.963, allocations: 11.58 kB / 3.067 GB, free: 47.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006062/8.964, allocations: 98.55 kB / 3.067 GB, free: 47.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/8.964, allocations: 7.406 kB / 3.067 GB, free: 47.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005626/8.964, allocations: 64.06 kB / 3.067 GB, free: 47.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.857e-05/8.964, allocations: 25.55 kB / 3.067 GB, free: 47.42 MB / 442.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 () * 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.000272/8.965, allocations: 160.9 kB / 3.067 GB, free: 47.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.175e-05/8.965, allocations: 38.69 kB / 3.067 GB, free: 47.29 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003231/8.968, allocations: 1.902 MB / 3.069 GB, free: 47.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-05/8.968, allocations: 32.2 kB / 3.069 GB, free: 47.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/8.968, allocations: 3.953 kB / 3.069 GB, free: 47.09 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.415e-06/8.968, allocations: 1.219 kB / 3.069 GB, free: 47.09 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001295/8.969, allocations: 0.9775 MB / 3.07 GB, free: 46.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/8.969, allocations: 2.125 kB / 3.07 GB, free: 46.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005572/8.97, allocations: 83.98 kB / 3.07 GB, free: 46.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.879e-06/8.97, allocations: 3.344 kB / 3.07 GB, free: 46.87 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.964e-05/8.97, allocations: 7.125 kB / 3.07 GB, free: 46.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.67e-06/8.97, allocations: 0 / 3.07 GB, free: 46.87 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/8.97, allocations: 0 / 3.07 GB, free: 46.87 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001992/8.972, allocations: 1.076 MB / 3.071 GB, free: 46.65 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002219/8.972, allocations: 207.9 kB / 3.071 GB, free: 46.51 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.579e-05/8.973, allocations: 6.875 kB / 3.071 GB, free: 46.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004908/8.973, allocations: 48.39 kB / 3.071 GB, free: 46.51 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/8.973, allocations: 32.84 kB / 3.071 GB, free: 46.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-05/8.973, allocations: 7.219 kB / 3.071 GB, free: 46.51 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003804/8.974, allocations: 266.1 kB / 3.072 GB, free: 46.42 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.262e-06/8.974, allocations: 1.969 kB / 3.072 GB, free: 46.42 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004862/8.978, allocations: 1.001 MB / 3.073 GB, free: 46.41 MB / 442.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 () * 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.01178/8.99, allocations: 2.887 MB / 3.075 GB, free: 45.65 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001765/8.992, allocations: 0.5957 MB / 3.076 GB, free: 45.64 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/8.992, allocations: 0 / 3.076 GB, free: 45.64 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009323/8.993, allocations: 0.5101 MB / 3.077 GB, free: 45.64 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001601/8.995, allocations: 174.7 kB / 3.077 GB, free: 45.64 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2412/9.236, allocations: 79.82 MB / 3.155 GB, free: 28.85 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004328/9.236, allocations: 0.9804 MB / 3.156 GB, free: 27.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004048/9.237, allocations: 246.4 kB / 3.156 GB, free: 27.73 MB / 442.7 MB Notification: Performance of SimCode: time 1.092e-06/9.237, allocations: 0 / 3.156 GB, free: 27.73 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.802/13.04, allocations: 28.27 MB / 3.183 GB, free: 7.926 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat