Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.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.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",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.01108/0.01108, allocations: 112.3 kB / 15.06 MB, free: 5.555 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.001208/0.001208, allocations: 184.6 kB / 15.95 MB, free: 5.52 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 2.026/2.026, allocations: 194.6 MB / 211.3 MB, free: 11.09 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.2776/0.2776, allocations: 40.05 MB / 296.5 MB, free: 6.285 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004882/0.0004882, allocations: 12 kB / 361.2 MB, free: 9.539 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1157, allocations: 54.87 MB / 416 MB, free: 2.566 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts): time 0.4023/0.5181, allocations: 49.67 MB / 465.7 MB, free: 32.62 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03045/0.5486, allocations: 14.13 MB / 479.8 MB, free: 29.17 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001398/0.55, allocations: 28.53 kB / 479.9 MB, free: 29.16 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002207/0.5523, allocations: 394.4 kB / 480.2 MB, free: 29.02 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01855/0.5709, allocations: 3.871 MB / 484.1 MB, free: 27.63 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008161/0.5791, allocations: 1.908 MB / 486 MB, free: 26.58 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003027/0.5821, allocations: 1.568 MB / 487.6 MB, free: 25.8 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001449/0.5836, allocations: 0.7026 MB / 488.3 MB, free: 25.55 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009991/0.5936, allocations: 3.628 MB / 491.9 MB, free: 24.93 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009719/0.6034, allocations: 3.29 MB / 495.2 MB, free: 24.47 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004194/0.6038, allocations: 52.66 kB / 495.3 MB, free: 24.47 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02261/0.6265, allocations: 7.111 MB / 0.4906 GB, free: 22.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007333/0.6273, allocations: 259 kB / 0.4908 GB, free: 22.8 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005591/0.6278, allocations: 233 kB / 0.4911 GB, free: 22.68 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01099/0.6388, allocations: 3.732 MB / 0.4947 GB, free: 21.96 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.6389, allocations: 1.25 kB / 0.4947 GB, free: 21.96 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.587e-06/0.6389, allocations: 4 kB / 0.4947 GB, free: 21.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.487e-05/0.639, allocations: 0 / 0.4947 GB, free: 21.96 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.008515/0.6475, allocations: 1.702 MB / 0.4964 GB, free: 20.97 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.6476, allocations: 14.98 kB / 0.4964 GB, free: 20.97 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004385/0.648, allocations: 138.4 kB / 0.4965 GB, free: 20.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003444/0.6515, allocations: 321.8 kB / 0.4968 GB, free: 20.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002/0.6535, allocations: 0.6428 MB / 0.4975 GB, free: 20.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002712/0.6538, allocations: 297.6 kB / 0.4977 GB, free: 20.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002351/0.6541, allocations: 86.62 kB / 0.4978 GB, free: 20.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005534/0.6596, allocations: 1.523 MB / 0.4993 GB, free: 19.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.215e-05/0.6597, allocations: 9.625 kB / 0.4993 GB, free: 19.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001917/0.66, allocations: 38.69 kB / 0.4994 GB, free: 19.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.224e-05/0.66, allocations: 35.44 kB / 0.4994 GB, free: 19.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005713/0.6658, allocations: 1.382 MB / 0.5007 GB, free: 18.88 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.01282/0.6786, allocations: 6.394 MB / 0.507 GB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004673/0.6834, allocations: 0.9993 MB / 0.508 GB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06621/0.7496, allocations: 18.91 MB / 0.5264 GB, free: 9.609 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.834e-05/0.7497, allocations: 55.05 kB / 0.5265 GB, free: 9.547 MB / 394.7 MB Notification: Performance of pre-optimization done (n=59): time 2.835e-06/0.7497, allocations: 0 / 0.5265 GB, free: 9.547 MB / 394.7 MB Notification: Performance of matching and sorting (n=64): time 0.01401/0.7638, allocations: 3.008 MB / 0.5294 GB, free: 6.48 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.765e-05/0.7639, allocations: 170.7 kB / 0.5296 GB, free: 6.277 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001502/0.7654, allocations: 0.7932 MB / 0.5304 GB, free: 5.477 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001507/0.7656, allocations: 53.69 kB / 0.5304 GB, free: 5.418 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000475/0.7661, allocations: 447.1 kB / 0.5308 GB, free: 4.977 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000278/0.7664, allocations: 213.1 kB / 0.531 GB, free: 4.766 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.481e-05/0.7665, allocations: 20 kB / 0.5311 GB, free: 4.746 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002162/0.7667, allocations: 398.7 kB / 0.5314 GB, free: 4.348 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001742/0.7685, allocations: 465.6 kB / 0.5319 GB, free: 3.891 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001966/0.7704, allocations: 0.7234 MB / 0.5326 GB, free: 3.047 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001748/0.7722, allocations: 490.8 kB / 0.5331 GB, free: 2.566 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.7722, allocations: 4 kB / 0.5331 GB, free: 2.562 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004667/0.7769, allocations: 1.301 MB / 0.5343 GB, free: 1.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.395e-05/0.777, allocations: 10.97 kB / 0.5343 GB, free: 1.242 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.205e-05/0.777, allocations: 9.438 kB / 0.5343 GB, free: 1.234 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005505/0.7776, allocations: 93.42 kB / 0.5344 GB, free: 1.141 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006756/0.7844, allocations: 363.4 kB / 0.5348 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008538/0.793, allocations: 6.414 MB / 0.541 GB, free: 9.824 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001971/0.795, allocations: 143.9 kB / 0.5412 GB, free: 9.684 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001588/0.7952, allocations: 43.98 kB / 0.5412 GB, free: 9.641 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 21 (tank.heatTransfer.states[1].phase,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[2],tank.ports_m_flow_out[2],$PRE.tank.ports_m_flow_out[3],tank.ports_m_flow_out[3],$PRE.tank.ports_m_flow_out[4],tank.ports_m_flow_out[4],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],$PRE.tank.aboveLevel[2],tank.aboveLevel[2],$PRE.tank.aboveLevel[3],tank.aboveLevel[3],$PRE.tank.aboveLevel[4],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase,Boundary_fixed.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008317/0.796, allocations: 351.6 kB / 0.5416 GB, free: 9.289 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000265/0.7963, allocations: 86.97 kB / 0.5416 GB, free: 9.203 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005631/0.8019, allocations: 2.214 MB / 0.5438 GB, free: 6.969 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-05/0.802, allocations: 19.97 kB / 0.5438 GB, free: 6.949 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.802, allocations: 1 kB / 0.5438 GB, free: 6.949 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.8021, allocations: 7.984 kB / 0.5438 GB, free: 6.941 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008859/0.8109, allocations: 3.43 MB / 0.5472 GB, free: 3.445 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/0.811, allocations: 0 / 0.5472 GB, free: 3.445 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006425/0.8174, allocations: 311.6 kB / 0.5475 GB, free: 3.141 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000577/0.818, allocations: 98.78 kB / 0.5476 GB, free: 3.043 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001303/0.8182, allocations: 23.94 kB / 0.5476 GB, free: 3.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008409/0.8266, allocations: 6.397 MB / 0.5538 GB, free: 12.08 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/0.8267, allocations: 4.031 kB / 0.5538 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006559/0.8332, allocations: 2.255 MB / 0.5561 GB, free: 9.762 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007442/0.834, allocations: 307 kB / 0.5563 GB, free: 9.441 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003607/0.8344, allocations: 27.98 kB / 0.5564 GB, free: 9.414 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001555/0.836, allocations: 122.6 kB / 0.5565 GB, free: 9.297 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004804/0.8365, allocations: 128.3 kB / 0.5566 GB, free: 9.172 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001187/0.8366, allocations: 31.98 kB / 0.5566 GB, free: 9.141 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001784/0.8384, allocations: 0.7774 MB / 0.5574 GB, free: 8.355 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.31e-07/0.8385, allocations: 4 kB / 0.5574 GB, free: 8.352 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007103/0.8456, allocations: 1.222 MB / 0.5586 GB, free: 7.129 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (tank.level,tank.medium.h) * Number of discrete variables: 20 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,tank.heatTransfer.states[1].phase,tank.ports_m_flow_out[1],tank.ports_m_flow_out[2],tank.ports_m_flow_out[3],tank.ports_m_flow_out[4],tank.aboveLevel[1],tank.aboveLevel[2],tank.aboveLevel[3],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],tank.aboveLevel[2],tank.ports_m_flow_out[2],tank.aboveLevel[3],tank.ports_m_flow_out[3],tank.aboveLevel[4],tank.ports_m_flow_out[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01806/0.8637, allocations: 4.326 MB / 0.5628 GB, free: 2.738 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009325/0.8731, allocations: 1.306 MB / 0.5641 GB, free: 1.445 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.8731, allocations: 0 / 0.5641 GB, free: 1.445 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007425/0.8806, allocations: 0.9182 MB / 0.565 GB, free: 0.5234 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004856/0.8855, allocations: 0.5071 MB / 0.5655 GB, free: 20 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02681/0.9123, allocations: 12.86 MB / 0.5781 GB, free: 2.848 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/0.9135, allocations: 1.242 MB / 0.5793 GB, free: 1.57 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002131/0.9157, allocations: 0.503 MB / 0.5798 GB, free: 1.07 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001128/0.9169, allocations: 467.2 kB / 0.5802 GB, free: 0.6172 MB / 442.7 MB Notification: Performance of SimCode: time 1.783e-06/0.9169, allocations: 0 / 0.5802 GB, free: 0.6172 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4867/1.404, allocations: 64.9 MB / 0.6436 GB, free: 156.8 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002495/1.404, allocations: 264.8 kB / 0.6438 GB, free: 156.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.086/8.49, allocations: 0 / 0.6438 GB, free: 156.4 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat