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.TestCheckValve.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.TestCheckValve,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",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.01112/0.01112, allocations: 105.5 kB / 15.06 MB, free: 5.949 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.001239/0.001239, allocations: 185.5 kB / 15.95 MB, free: 5.902 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.904/1.904, allocations: 194.6 MB / 211.3 MB, free: 11.04 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.2662/0.2662, allocations: 40.04 MB / 296.5 MB, free: 6.293 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008019/0.0008022, allocations: 16 kB / 361.2 MB, free: 9.531 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1459, allocations: 54.87 MB / 416 MB, free: 2.562 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.04051/0.1865, allocations: 24.01 MB / 440 MB, free: 10.48 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3388/0.5253, allocations: 14.75 MB / 454.8 MB, free: 32.03 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006852/0.526, allocations: 16.66 kB / 454.8 MB, free: 32.03 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001203/0.5273, allocations: 261.1 kB / 455.1 MB, free: 32.03 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01376/0.5411, allocations: 3.526 MB / 458.6 MB, free: 31.99 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009792/0.5509, allocations: 2.479 MB / 461.1 MB, free: 31.96 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001239/0.5521, allocations: 0.5863 MB / 461.6 MB, free: 31.96 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005145/0.5527, allocations: 225.5 kB / 461.9 MB, free: 31.94 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001324/0.554, allocations: 452.5 kB / 462.3 MB, free: 31.94 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007588/0.5616, allocations: 2.945 MB / 465.3 MB, free: 31.9 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.5618, allocations: 15.78 kB / 465.3 MB, free: 31.9 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01839/0.5802, allocations: 7.259 MB / 472.5 MB, free: 31.88 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002548/0.5805, allocations: 86.86 kB / 472.6 MB, free: 31.88 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002345/0.5808, allocations: 112.6 kB / 472.7 MB, free: 31.85 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008068/0.5888, allocations: 3.1 MB / 475.8 MB, free: 31.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.5889, allocations: 0 / 475.8 MB, free: 31.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.236e-06/0.5889, allocations: 4 kB / 475.8 MB, free: 31.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.589, allocations: 0 / 475.8 MB, free: 31.72 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.004718/0.5937, allocations: 1.245 MB / 477.1 MB, free: 30.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.5938, allocations: 9.984 kB / 477.1 MB, free: 30.98 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001986/0.594, allocations: 70.73 kB / 477.2 MB, free: 30.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002977/0.5969, allocations: 249.3 kB / 477.4 MB, free: 30.92 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009449/0.5979, allocations: 397.5 kB / 477.8 MB, free: 30.69 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.859e-05/0.598, allocations: 28.16 kB / 477.8 MB, free: 30.69 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.501e-05/0.5981, allocations: 31.25 kB / 477.8 MB, free: 30.69 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00273/0.6008, allocations: 0.6199 MB / 478.5 MB, free: 30.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.42e-05/0.6009, allocations: 0 / 478.5 MB, free: 30.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.69e-05/0.601, allocations: 15.48 kB / 478.5 MB, free: 30.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.601, allocations: 9.234 kB / 478.5 MB, free: 30.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003141/0.6042, allocations: 0.6 MB / 479.1 MB, free: 30.56 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.004643/0.6089, allocations: 2.594 MB / 481.7 MB, free: 28.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002482/0.6114, allocations: 477.4 kB / 482.1 MB, free: 28.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2178/0.8292, allocations: 52.02 MB / 0.5216 GB, free: 19.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.911e-05/0.8294, allocations: 41.42 kB / 0.5217 GB, free: 19.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 5.5e-06/0.8294, allocations: 0 / 0.5217 GB, free: 19.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.006889/0.8363, allocations: 0.8484 MB / 0.5225 GB, free: 19.24 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.8364, allocations: 108.9 kB / 0.5226 GB, free: 19.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005648/0.837, allocations: 356.2 kB / 0.523 GB, free: 18.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.806e-05/0.8371, allocations: 29.14 kB / 0.523 GB, free: 18.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001812/0.8373, allocations: 242.9 kB / 0.5232 GB, free: 18.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.324e-05/0.8374, allocations: 84.56 kB / 0.5233 GB, free: 18.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.48e-05/0.8375, allocations: 9.25 kB / 0.5233 GB, free: 18.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.8376, allocations: 340.6 kB / 0.5236 GB, free: 18.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006897/0.8383, allocations: 173.6 kB / 0.5238 GB, free: 18.08 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007395/0.8391, allocations: 301.4 kB / 0.5241 GB, free: 17.78 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007346/0.8398, allocations: 192.5 kB / 0.5243 GB, free: 17.65 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.473e-06/0.8399, allocations: 4 kB / 0.5243 GB, free: 17.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001833/0.8417, allocations: 0.5123 MB / 0.5248 GB, free: 17.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006169/0.8424, allocations: 1.49 MB / 0.5262 GB, free: 15.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.8424, allocations: 4 kB / 0.5262 GB, free: 15.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.258e-05/0.8424, allocations: 4 kB / 0.5262 GB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008424/0.8433, allocations: 115.4 kB / 0.5263 GB, free: 15.58 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.617e-05/0.8433, allocations: 14.67 kB / 0.5264 GB, free: 15.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007127/0.844, allocations: 77.36 kB / 0.5264 GB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.957e-05/0.8441, allocations: 22.23 kB / 0.5264 GB, free: 15.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.8441, allocations: 4 kB / 0.5265 GB, free: 15.48 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001691/0.8458, allocations: 477 kB / 0.5269 GB, free: 15.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.8459, allocations: 7.984 kB / 0.5269 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.8459, allocations: 5.125 kB / 0.5269 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000749/0.8467, allocations: 112.2 kB / 0.527 GB, free: 15.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.8467, allocations: 6.906 kB / 0.527 GB, free: 15.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006332/0.8473, allocations: 69.75 kB / 0.5271 GB, free: 14.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.302e-05/0.8474, allocations: 26.23 kB / 0.5271 GB, free: 14.95 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.000353/0.8478, allocations: 235.1 kB / 0.5273 GB, free: 14.74 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.528e-05/0.8479, allocations: 43.61 kB / 0.5274 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003573/0.8514, allocations: 1.99 MB / 0.5293 GB, free: 13.37 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-05/0.8515, allocations: 28.77 kB / 0.5294 GB, free: 13.35 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.8516, allocations: 4 kB / 0.5294 GB, free: 13.35 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.8516, allocations: 3.984 kB / 0.5294 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001678/0.8533, allocations: 1.028 MB / 0.5304 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.8533, allocations: 3.953 kB / 0.5304 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006611/0.854, allocations: 92.61 kB / 0.5305 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.666e-06/0.854, allocations: 6.062 kB / 0.5305 GB, free: 12.51 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.615e-05/0.8541, allocations: 9.984 kB / 0.5305 GB, free: 12.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.8541, allocations: 1 kB / 0.5305 GB, free: 12.51 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.8541, allocations: 0 / 0.5305 GB, free: 12.51 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002446/0.8565, allocations: 1.133 MB / 0.5316 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004845/0.8571, allocations: 257.3 kB / 0.5318 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.8572, allocations: 10.06 kB / 0.5318 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005867/0.8578, allocations: 42.09 kB / 0.5319 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.858, allocations: 31.2 kB / 0.5319 GB, free: 11.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.728e-05/0.858, allocations: 22.48 kB / 0.5319 GB, free: 11.35 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005949/0.8586, allocations: 308.4 kB / 0.5322 GB, free: 11.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.8586, allocations: 0 / 0.5322 GB, free: 11.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004741/0.8634, allocations: 1.149 MB / 0.5334 GB, free: 10.02 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: 18 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.phase,$cse15.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 29 * 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.01103/0.8745, allocations: 2.825 MB / 0.5361 GB, free: 7.617 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003042/0.8776, allocations: 0.9041 MB / 0.537 GB, free: 6.988 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.8776, allocations: 0 / 0.537 GB, free: 6.988 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001165/0.8788, allocations: 0.5407 MB / 0.5375 GB, free: 6.688 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/0.8807, allocations: 199.9 kB / 0.5377 GB, free: 6.535 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008583/0.8893, allocations: 5.275 MB / 0.5429 GB, free: 1.516 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007522/0.8901, allocations: 0.9992 MB / 0.5438 GB, free: 500 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00171/0.8918, allocations: 0.5862 MB / 0.5444 GB, free: 15.92 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006204/0.8925, allocations: 277.1 kB / 0.5447 GB, free: 15.66 MB / 426.7 MB Notification: Performance of SimCode: time 1.082e-06/0.8925, allocations: 0 / 0.5447 GB, free: 15.66 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1362/1.029, allocations: 47.74 MB / 0.5913 GB, free: 68 kB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003447/1.029, allocations: 230.3 kB / 0.5915 GB, free: 15.83 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.188/7.218, allocations: 0 / 0.5915 GB, free: 15.83 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat does not exist to compare? outputFormat=mat