Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.279/2.279, allocations: 234.9 MB / 250.5 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000437/0.0004372, allocations: 8 kB / 314.4 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3384, allocations: 54.87 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse): time 0.09737/0.4358, allocations: 62.54 MB / 431.8 MB, free: 12.04 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04668/0.4825, allocations: 23.39 MB / 455.2 MB, free: 4.598 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002201/0.4848, allocations: 51.5 kB / 455.3 MB, free: 4.547 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003884/0.4887, allocations: 0.8789 MB / 456.1 MB, free: 3.664 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02069/0.5094, allocations: 5.103 MB / 461.2 MB, free: 14.55 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01918/0.5286, allocations: 4.726 MB / 466 MB, free: 9.82 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.005282/0.5339, allocations: 2.225 MB / 468.2 MB, free: 7.59 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001913/0.5359, allocations: 0.882 MB / 469.1 MB, free: 6.688 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00369/0.5396, allocations: 1.199 MB / 470.3 MB, free: 5.484 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3709/0.9106, allocations: 14.43 MB / 484.7 MB, free: 14.11 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005656/0.9112, allocations: 71.75 kB / 484.8 MB, free: 14.11 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0214/0.9326, allocations: 8.005 MB / 492.8 MB, free: 14.09 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007051/0.9334, allocations: 319.9 kB / 493.1 MB, free: 14.09 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006126/0.934, allocations: 323.2 kB / 493.4 MB, free: 14.06 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01103/0.945, allocations: 4.469 MB / 497.9 MB, free: 13.8 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.9451, allocations: 0 / 497.9 MB, free: 13.8 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.9451, allocations: 4 kB / 497.9 MB, free: 13.8 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.321e-05/0.9451, allocations: 3.062 kB / 497.9 MB, free: 13.8 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.01199/0.9572, allocations: 2.666 MB / 0.4888 GB, free: 12.61 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.9572, allocations: 13.94 kB / 0.4888 GB, free: 12.61 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004336/0.9577, allocations: 170 kB / 0.489 GB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007847/0.9655, allocations: 0.7735 MB / 0.4897 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002338/0.9679, allocations: 0.9416 MB / 0.4907 GB, free: 12.17 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.968, allocations: 101.5 kB / 0.4908 GB, free: 12.17 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002726/0.9683, allocations: 114.3 kB / 0.4909 GB, free: 12.17 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007893/0.9762, allocations: 2.177 MB / 0.493 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.791e-05/0.9763, allocations: 7.312 kB / 0.493 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002167/0.9766, allocations: 53.86 kB / 0.4931 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.69e-05/0.9766, allocations: 31.38 kB / 0.4931 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008828/0.9854, allocations: 2.194 MB / 0.4952 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01616/1.002, allocations: 8.908 MB / 0.5039 GB, free: 5.602 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00881/1.011, allocations: 1.948 MB / 0.5058 GB, free: 4.062 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2131/1.224, allocations: 49.83 MB / 0.5545 GB, free: 13.84 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.917e-05/1.224, allocations: 42.19 kB / 0.5545 GB, free: 13.8 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001203/1.225, allocations: 127.9 kB / 0.5547 GB, free: 13.69 MB / 458.7 MB Notification: Performance of pre-optimization done (n=106): time 7.273e-06/1.225, allocations: 0 / 0.5547 GB, free: 13.69 MB / 458.7 MB Notification: Performance of matching and sorting (n=106): time 0.02423/1.249, allocations: 3.829 MB / 0.5584 GB, free: 10.47 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001334/1.249, allocations: 192.9 kB / 0.5586 GB, free: 10.24 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001791/1.251, allocations: 0.904 MB / 0.5595 GB, free: 9.539 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003241/1.252, allocations: 52.2 kB / 0.5595 GB, free: 9.5 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005867/1.252, allocations: 0.6192 MB / 0.5601 GB, free: 9.051 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005801/1.253, allocations: 356.8 kB / 0.5605 GB, free: 8.754 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/1.253, allocations: 28.25 kB / 0.5605 GB, free: 8.75 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002155/1.253, allocations: 372.2 kB / 0.5608 GB, free: 8.402 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002856/1.256, allocations: 0.6149 MB / 0.5614 GB, free: 7.949 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003324/1.259, allocations: 1.058 MB / 0.5625 GB, free: 6.914 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003205/1.263, allocations: 0.7209 MB / 0.5632 GB, free: 6.43 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-05/1.263, allocations: 4 kB / 0.5632 GB, free: 6.426 MB / 458.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.007767/1.27, allocations: 1.942 MB / 0.5651 GB, free: 5.039 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004236/1.271, allocations: 472.2 kB / 0.5655 GB, free: 4.449 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.598e-05/1.271, allocations: 12 kB / 0.5655 GB, free: 4.438 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01224/1.283, allocations: 1.102 MB / 0.5666 GB, free: 3.387 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003274/1.287, allocations: 443.4 kB / 0.567 GB, free: 2.992 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002059/1.289, allocations: 0.935 MB / 0.5679 GB, free: 2.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002712/1.291, allocations: 167.9 kB / 0.5681 GB, free: 2.039 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003955/1.292, allocations: 90.44 kB / 0.5682 GB, free: 1.965 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/1.292, allocations: 3.953 kB / 0.5682 GB, free: 1.961 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007367/1.299, allocations: 1.768 MB / 0.5699 GB, free: 0.7031 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.522e-05/1.299, allocations: 12 kB / 0.5699 GB, free: 0.6914 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005178/1.3, allocations: 99.38 kB / 0.57 GB, free: 0.6016 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003448/1.303, allocations: 472.1 kB / 0.5705 GB, free: 188 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003132/1.306, allocations: 1.76 MB / 0.5722 GB, free: 14.48 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002186/1.309, allocations: 168.8 kB / 0.5724 GB, free: 14.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003286/1.309, allocations: 87.44 kB / 0.5724 GB, free: 14.27 MB / 474.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.001081/1.31, allocations: 396.3 kB / 0.5728 GB, free: 13.99 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000432/1.311, allocations: 130.4 kB / 0.5729 GB, free: 13.86 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0145/1.325, allocations: 6.74 MB / 0.5795 GB, free: 9.395 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001106/1.325, allocations: 89.55 kB / 0.5796 GB, free: 9.332 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/1.325, allocations: 0 / 0.5796 GB, free: 9.332 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.58e-05/1.325, allocations: 7.969 kB / 0.5796 GB, free: 9.324 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004991/1.33, allocations: 2.886 MB / 0.5824 GB, free: 7.438 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-05/1.33, allocations: 0 / 0.5824 GB, free: 7.438 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001928/1.332, allocations: 277 kB / 0.5827 GB, free: 7.184 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01059/1.343, allocations: 2.019 MB / 0.5847 GB, free: 5.312 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002913/1.343, allocations: 36.67 kB / 0.5847 GB, free: 5.297 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002691/1.346, allocations: 1.6 MB / 0.5863 GB, free: 4.105 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/1.346, allocations: 3.953 kB / 0.5863 GB, free: 4.102 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008579/1.355, allocations: 3.738 MB / 0.5899 GB, free: 1.516 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001354/1.356, allocations: 0.5905 MB / 0.5905 GB, free: 0.9961 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003719/1.356, allocations: 33.75 kB / 0.5905 GB, free: 0.9844 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001701/1.358, allocations: 130.8 kB / 0.5907 GB, free: 0.875 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003182/1.358, allocations: 113.3 kB / 0.5908 GB, free: 0.7812 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001389/1.359, allocations: 43.55 kB / 0.5908 GB, free: 0.7461 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001528/1.36, allocations: 0.7666 MB / 0.5916 GB, free: 168 kB / 474.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.36, allocations: 4 kB / 0.5916 GB, free: 164 kB / 474.7 MB Notification: Performance of remove unused functions: time 0.007154/1.367, allocations: 1.711 MB / 0.5932 GB, free: 14.56 MB / 490.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.0167/1.384, allocations: 5.286 MB / 0.5984 GB, free: 10.47 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01076/1.395, allocations: 3.271 MB / 0.6016 GB, free: 8.105 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/1.395, allocations: 4 kB / 0.6016 GB, free: 8.102 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003989/1.399, allocations: 1.649 MB / 0.6032 GB, free: 7.141 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005646/1.405, allocations: 0.5991 MB / 0.6038 GB, free: 6.668 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01794/1.423, allocations: 7.766 MB / 0.6114 GB, free: 15.71 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001677/1.424, allocations: 1.701 MB / 0.613 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001647/1.426, allocations: 0.9414 MB / 0.614 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of SimCode: time 1.112e-06/1.426, allocations: 0 / 0.614 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.415/5.841, allocations: 60.26 MB / 0.6728 GB, free: 222.6 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat does not exist to compare? outputFormat=mat