Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.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 Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01107/0.01107, allocations: 106.7 kB / 15.06 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001275/0.001275, allocations: 181.6 kB / 15.95 MB, free: 5.953 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 1.961/1.961, allocations: 194.6 MB / 211.3 MB, free: 11.07 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.266/0.266, allocations: 40.04 MB / 296.5 MB, free: 6.293 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000468/0.0004681, allocations: 8 kB / 361.1 MB, free: 9.562 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1145, allocations: 54.87 MB / 416 MB, free: 2.594 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03904/0.1536, allocations: 23.66 MB / 439.7 MB, free: 10.87 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3278/0.4814, allocations: 11.36 MB / 451 MB, free: 32.14 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005468/0.482, allocations: 16.81 kB / 451 MB, free: 32.14 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009696/0.483, allocations: 206.6 kB / 451.2 MB, free: 32.14 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01125/0.4943, allocations: 2.816 MB / 454.1 MB, free: 32.12 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007914/0.5022, allocations: 1.906 MB / 456 MB, free: 32.1 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001336/0.5036, allocations: 0.5301 MB / 456.5 MB, free: 32.1 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006051/0.5042, allocations: 199.8 kB / 456.7 MB, free: 32.09 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001355/0.5056, allocations: 401.9 kB / 457.1 MB, free: 32.09 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004549/0.5061, allocations: 196.3 kB / 457.3 MB, free: 32.09 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.733e-05/0.5062, allocations: 16.56 kB / 457.3 MB, free: 32.09 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0183/0.5245, allocations: 7.01 MB / 464.3 MB, free: 32.07 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000219/0.5247, allocations: 78.09 kB / 464.4 MB, free: 32.07 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002412/0.525, allocations: 105 kB / 464.5 MB, free: 32.04 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007804/0.5328, allocations: 2.942 MB / 467.4 MB, free: 31.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.5329, allocations: 0 / 467.4 MB, free: 31.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.5329, allocations: 0 / 467.4 MB, free: 31.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.5329, allocations: 0 / 467.4 MB, free: 31.93 MB / 378.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.004102/0.537, allocations: 1.15 MB / 468.6 MB, free: 31.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.5371, allocations: 17 kB / 468.6 MB, free: 31.24 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001254/0.5372, allocations: 66.02 kB / 468.7 MB, free: 31.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002404/0.5397, allocations: 220.6 kB / 468.9 MB, free: 31.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000733/0.5404, allocations: 363.8 kB / 469.2 MB, free: 30.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.944e-05/0.5405, allocations: 25.72 kB / 469.2 MB, free: 30.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.83e-05/0.5406, allocations: 34 kB / 469.3 MB, free: 30.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002242/0.5428, allocations: 0.5981 MB / 469.9 MB, free: 30.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/0.5429, allocations: 0 / 469.9 MB, free: 30.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.274e-05/0.543, allocations: 12.25 kB / 469.9 MB, free: 30.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.543, allocations: 9.406 kB / 469.9 MB, free: 30.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002488/0.5455, allocations: 0.5641 MB / 470.5 MB, free: 30.81 MB / 378.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.003551/0.5491, allocations: 2.573 MB / 473 MB, free: 28.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002338/0.5514, allocations: 484.7 kB / 473.5 MB, free: 28.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1939/0.7454, allocations: 52.02 MB / 0.5132 GB, free: 25.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.565e-05/0.7455, allocations: 40.34 kB / 0.5133 GB, free: 25.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.385e-06/0.7455, allocations: 0 / 0.5133 GB, free: 25.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.003974/0.7495, allocations: 0.8238 MB / 0.5141 GB, free: 24.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.378e-05/0.7496, allocations: 102.8 kB / 0.5142 GB, free: 24.55 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003873/0.75, allocations: 285.7 kB / 0.5144 GB, free: 24.31 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.875e-05/0.75, allocations: 29.58 kB / 0.5145 GB, free: 24.28 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001681/0.7502, allocations: 222.7 kB / 0.5147 GB, free: 24.11 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.633e-05/0.7503, allocations: 91.14 kB / 0.5148 GB, free: 24.03 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.736e-05/0.7504, allocations: 2.25 kB / 0.5148 GB, free: 24.03 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.7505, allocations: 342.1 kB / 0.5151 GB, free: 23.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006224/0.7512, allocations: 152.7 kB / 0.5152 GB, free: 23.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006744/0.7519, allocations: 275.1 kB / 0.5155 GB, free: 23.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006532/0.7525, allocations: 174.1 kB / 0.5157 GB, free: 23.19 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/0.7526, allocations: 7.953 kB / 0.5157 GB, free: 23.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00163/0.7542, allocations: 468.9 kB / 0.5161 GB, free: 22.83 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.7542, allocations: 10.44 kB / 0.5161 GB, free: 22.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.7543, allocations: 8 kB / 0.5161 GB, free: 22.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.437e-05/0.7543, allocations: 7.938 kB / 0.5161 GB, free: 22.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006089/0.7549, allocations: 97.34 kB / 0.5162 GB, free: 22.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.52e-05/0.755, allocations: 7.188 kB / 0.5162 GB, free: 22.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005484/0.7555, allocations: 65.78 kB / 0.5163 GB, free: 22.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.144e-05/0.7556, allocations: 16.06 kB / 0.5163 GB, free: 22.65 MB / 410.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.0003003/0.7559, allocations: 157.3 kB / 0.5165 GB, free: 22.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.503e-05/0.756, allocations: 38.67 kB / 0.5165 GB, free: 22.48 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003363/0.7594, allocations: 1.923 MB / 0.5184 GB, free: 21.19 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.136e-05/0.7595, allocations: 27.83 kB / 0.5184 GB, free: 21.17 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/0.7595, allocations: 7.984 kB / 0.5184 GB, free: 21.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.7595, allocations: 0 / 0.5184 GB, free: 21.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/0.7608, allocations: 0.9989 MB / 0.5194 GB, free: 20.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.7609, allocations: 0 / 0.5194 GB, free: 20.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005856/0.7615, allocations: 84.89 kB / 0.5195 GB, free: 20.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.266e-06/0.7615, allocations: 0 / 0.5195 GB, free: 20.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.253e-05/0.7615, allocations: 9 kB / 0.5195 GB, free: 20.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/0.7615, allocations: 0 / 0.5195 GB, free: 20.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.7615, allocations: 5.375 kB / 0.5195 GB, free: 20.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002033/0.7636, allocations: 1.097 MB / 0.5206 GB, free: 19.55 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002445/0.7639, allocations: 200 kB / 0.5208 GB, free: 19.35 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.431e-05/0.764, allocations: 12.75 kB / 0.5208 GB, free: 19.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004826/0.7645, allocations: 41.41 kB / 0.5208 GB, free: 19.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.7646, allocations: 31.77 kB / 0.5208 GB, free: 19.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.715e-05/0.7647, allocations: 11 kB / 0.5208 GB, free: 19.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003876/0.7651, allocations: 258.3 kB / 0.5211 GB, free: 19.07 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7651, allocations: 2.156 kB / 0.5211 GB, free: 19.07 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003612/0.7687, allocations: 0.995 MB / 0.5221 GB, free: 18.12 MB / 410.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,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.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.009617/0.7784, allocations: 2.704 MB / 0.5247 GB, free: 15.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001769/0.7802, allocations: 0.6211 MB / 0.5253 GB, free: 15.39 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/0.7802, allocations: 0 / 0.5253 GB, free: 15.39 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009713/0.7812, allocations: 0.5279 MB / 0.5258 GB, free: 15.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001595/0.7828, allocations: 174.4 kB / 0.526 GB, free: 14.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009887/0.7927, allocations: 5.918 MB / 0.5318 GB, free: 9.508 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006569/0.7934, allocations: 0.9828 MB / 0.5327 GB, free: 8.5 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008367/0.7943, allocations: 277.2 kB / 0.533 GB, free: 8.246 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004178/0.7947, allocations: 245.7 kB / 0.5332 GB, free: 8.191 MB / 410.7 MB Notification: Performance of SimCode: time 1.163e-06/0.7947, allocations: 4 kB / 0.5332 GB, free: 8.188 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1186/0.9134, allocations: 45.42 MB / 0.5776 GB, free: 11 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002814/0.9137, allocations: 239.5 kB / 0.5778 GB, free: 10.76 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.909/6.823, allocations: 0 / 0.5778 GB, free: 10.76 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat