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.TestValvesCompressibleReverse.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.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.089/2.089, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004329/0.0004328, allocations: 16 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3534, allocations: 48.7 MB / 331.3 MB, free: 6.527 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse): time 0.1153/0.4687, allocations: 62.05 MB / 393.3 MB, free: 356 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.05669/0.5255, allocations: 23.18 MB / 416.5 MB, free: 9.125 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002604/0.5281, allocations: 51.5 kB / 416.6 MB, free: 9.074 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004213/0.5324, allocations: 0.8789 MB / 417.4 MB, free: 8.191 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02276/0.5552, allocations: 5.033 MB / 422.5 MB, free: 3.145 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02035/0.5756, allocations: 4.678 MB / 427.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.005385/0.581, allocations: 2.182 MB / 429.3 MB, free: 12.28 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002172/0.5833, allocations: 0.8781 MB / 430.2 MB, free: 11.37 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004078/0.5874, allocations: 1.18 MB / 431.4 MB, free: 10.18 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03906/0.6265, allocations: 14.27 MB / 445.7 MB, free: 11.91 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004946/0.627, allocations: 72 kB / 445.7 MB, free: 11.84 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02417/0.6512, allocations: 7.851 MB / 453.6 MB, free: 3.977 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008035/0.6521, allocations: 306.9 kB / 453.9 MB, free: 3.676 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006804/0.6528, allocations: 328.9 kB / 454.2 MB, free: 3.348 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01259/0.6654, allocations: 4.396 MB / 458.6 MB, free: 14.94 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.6654, allocations: 4 kB / 458.6 MB, free: 14.94 MB / 394.7 MB Notification: Performance of FrontEnd: time 5.39e-06/0.6655, allocations: 0 / 458.6 MB, free: 14.94 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.043e-05/0.6655, allocations: 3.938 kB / 458.6 MB, free: 14.93 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 284 * Number of variables: 284 Notification: Performance of Generate backend data structure: time 0.01202/0.6776, allocations: 2.603 MB / 461.2 MB, free: 12.27 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.6776, allocations: 8.031 kB / 461.2 MB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005326/0.6782, allocations: 177 kB / 461.4 MB, free: 12.08 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008091/0.6863, allocations: 0.7279 MB / 462.1 MB, free: 11.35 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002579/0.6889, allocations: 0.9353 MB / 463 MB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001633/0.6891, allocations: 98.23 kB / 463.1 MB, free: 10.28 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000343/0.6895, allocations: 119.9 kB / 463.3 MB, free: 10.16 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008846/0.6983, allocations: 2.183 MB / 465.4 MB, free: 7.852 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.577e-05/0.6984, allocations: 7.938 kB / 465.5 MB, free: 7.844 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002411/0.6987, allocations: 48 kB / 465.5 MB, free: 7.797 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.642e-05/0.6987, allocations: 28 kB / 465.5 MB, free: 7.77 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01025/0.709, allocations: 2.193 MB / 467.7 MB, free: 5.57 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.285/0.994, allocations: 8.901 MB / 476.6 MB, free: 117.2 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009724/1.004, allocations: 1.951 MB / 478.6 MB, free: 117 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1724/1.176, allocations: 49.79 MB / 0.516 GB, free: 74.02 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.731e-05/1.176, allocations: 55.11 kB / 0.516 GB, free: 73.96 MB / 394.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001146/1.178, allocations: 127.8 kB / 0.5162 GB, free: 73.89 MB / 394.7 MB Notification: Performance of pre-optimization done (n=106): time 5.14e-06/1.178, allocations: 0 / 0.5162 GB, free: 73.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=106): time 0.0216/1.199, allocations: 3.819 MB / 0.5199 GB, free: 70.11 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.014e-05/1.199, allocations: 196.9 kB / 0.5201 GB, free: 69.88 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001385/1.201, allocations: 0.9037 MB / 0.521 GB, free: 68.97 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000218/1.201, allocations: 53.09 kB / 0.521 GB, free: 68.92 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004004/1.201, allocations: 0.616 MB / 0.5216 GB, free: 68.33 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003294/1.202, allocations: 364.7 kB / 0.522 GB, free: 67.97 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/1.202, allocations: 28 kB / 0.522 GB, free: 67.95 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001049/1.202, allocations: 370.6 kB / 0.5223 GB, free: 67.58 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002358/1.204, allocations: 0.6168 MB / 0.5229 GB, free: 66.96 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002613/1.207, allocations: 1.058 MB / 0.524 GB, free: 65.73 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002624/1.21, allocations: 0.7217 MB / 0.5247 GB, free: 65.01 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.276e-05/1.21, allocations: 4 kB / 0.5247 GB, free: 65.01 MB / 394.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.006372/1.216, allocations: 1.927 MB / 0.5266 GB, free: 63.07 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002464/1.216, allocations: 481 kB / 0.527 GB, free: 62.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/1.216, allocations: 14.81 kB / 0.527 GB, free: 62.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01138/1.228, allocations: 1.099 MB / 0.5281 GB, free: 61.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002971/1.231, allocations: 449.7 kB / 0.5285 GB, free: 60.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001675/1.232, allocations: 0.9328 MB / 0.5294 GB, free: 59.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002374/1.235, allocations: 167.8 kB / 0.5296 GB, free: 59.76 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002084/1.235, allocations: 91.94 kB / 0.5297 GB, free: 59.67 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/1.235, allocations: 7.953 kB / 0.5297 GB, free: 59.66 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006224/1.241, allocations: 1.765 MB / 0.5314 GB, free: 57.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.802e-05/1.241, allocations: 12 kB / 0.5314 GB, free: 57.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004656/1.242, allocations: 92.78 kB / 0.5315 GB, free: 57.79 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003054/1.245, allocations: 483 kB / 0.532 GB, free: 57.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00237/1.247, allocations: 1.763 MB / 0.5337 GB, free: 55.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002008/1.249, allocations: 167.7 kB / 0.5339 GB, free: 55.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001981/1.25, allocations: 86.64 kB / 0.5339 GB, free: 55.18 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 15 (SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase,V5.state_b.phase,V5.state_a.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,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 (163): * Single equations (assignments): 162 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 22} Notification: Performance of prepare postOptimizeDAE: time 0.0008786/1.251, allocations: 393.7 kB / 0.5343 GB, free: 54.79 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003245/1.251, allocations: 130.5 kB / 0.5344 GB, free: 54.66 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01207/1.263, allocations: 6.741 MB / 0.541 GB, free: 47.89 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.763e-05/1.263, allocations: 83.86 kB / 0.5411 GB, free: 47.81 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/1.263, allocations: 0 / 0.5411 GB, free: 47.81 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-05/1.263, allocations: 7.969 kB / 0.5411 GB, free: 47.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004171/1.267, allocations: 2.883 MB / 0.5439 GB, free: 44.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-05/1.267, allocations: 0 / 0.5439 GB, free: 44.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001816/1.269, allocations: 287.6 kB / 0.5442 GB, free: 44.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0097/1.279, allocations: 2.016 MB / 0.5462 GB, free: 42.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002525/1.279, allocations: 35.98 kB / 0.5462 GB, free: 42.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002264/1.282, allocations: 1.597 MB / 0.5478 GB, free: 40.94 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/1.282, allocations: 3.953 kB / 0.5478 GB, free: 40.94 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007803/1.289, allocations: 3.743 MB / 0.5514 GB, free: 37.17 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/1.291, allocations: 0.5937 MB / 0.552 GB, free: 36.55 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003502/1.291, allocations: 27.95 kB / 0.552 GB, free: 36.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001556/1.293, allocations: 135.8 kB / 0.5522 GB, free: 36.39 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002729/1.293, allocations: 113 kB / 0.5523 GB, free: 36.28 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001369/1.293, allocations: 50.42 kB / 0.5523 GB, free: 36.23 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001315/1.294, allocations: 0.7615 MB / 0.5531 GB, free: 35.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.294, allocations: 0 / 0.5531 GB, free: 35.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006607/1.301, allocations: 1.705 MB / 0.5547 GB, free: 33.86 MB / 394.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: 51 ($cse6.phase,$cse6.region,$cse10.phase,$cse10.region,$cse14.phase,$cse14.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse28.phase,$cse28.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse40.phase,$cse40.region,$cse45.phase,$cse45.region,$cse46.phase,$cse46.region,$cse47.phase,$cse47.region,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse51.phase,$cse51.region,$cse53.phase,$cse53.region,$cse54.phase,$cse54.region,$cse56.phase,$cse56.region,$cse57.phase,$cse57.region,$cse59.phase,$cse59.region,$cse60.phase,$cse60.region,$cse62.phase,$cse62.region,$cse63.phase,$cse63.region,SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 34} Notification: Performance of Backend phase and start with SimCode phase: time 0.01513/1.316, allocations: 5.292 MB / 0.5599 GB, free: 28.75 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00985/1.326, allocations: 3.269 MB / 0.5631 GB, free: 25.47 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/1.326, allocations: 0 / 0.5631 GB, free: 25.47 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003546/1.33, allocations: 1.655 MB / 0.5647 GB, free: 23.82 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005207/1.335, allocations: 0.5853 MB / 0.5653 GB, free: 23.23 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01489/1.35, allocations: 7.757 MB / 0.5729 GB, free: 15.46 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001131/1.351, allocations: 1.702 MB / 0.5745 GB, free: 13.72 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001598/1.353, allocations: 0.9444 MB / 0.5754 GB, free: 12.78 MB / 394.7 MB Notification: Performance of SimCode: time 1.673e-06/1.353, allocations: 0 / 0.5754 GB, free: 12.78 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.615/5.968, allocations: 60.11 MB / 0.6341 GB, free: 138.3 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat does not exist to compare? outputFormat=mat