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.TestValveCoefficients.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.TestValveCoefficients,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.297/2.297, allocations: 234.9 MB / 250.4 MB, free: 9.695 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004427/0.0004429, allocations: 16 kB / 314.4 MB, free: 9.637 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3639/0.3644, allocations: 54.86 MB / 369.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients): time 0.1259/0.4903, allocations: 68.22 MB / 437.5 MB, free: 8.383 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0538/0.5442, allocations: 24.56 MB / 462.1 MB, free: 15.77 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002278/0.5465, allocations: 55.5 kB / 462.1 MB, free: 15.72 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004571/0.5511, allocations: 0.9879 MB / 463.1 MB, free: 14.73 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01789/0.5691, allocations: 4.098 MB / 467.2 MB, free: 10.62 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02644/0.5955, allocations: 6.189 MB / 473.4 MB, free: 4.418 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.005661/0.6012, allocations: 2.394 MB / 475.8 MB, free: 2.02 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001798/0.6031, allocations: 0.8028 MB / 476.6 MB, free: 1.195 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003882/0.607, allocations: 1.207 MB / 477.8 MB, free: 15.98 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001949/0.609, allocations: 0.7702 MB / 478.6 MB, free: 15.21 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003562/0.6094, allocations: 60 kB / 478.6 MB, free: 15.15 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02601/0.6354, allocations: 8.276 MB / 486.9 MB, free: 6.867 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007956/0.6362, allocations: 298.9 kB / 487.2 MB, free: 6.574 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007/0.6369, allocations: 336.9 kB / 487.5 MB, free: 6.238 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01337/0.6503, allocations: 4.646 MB / 492.2 MB, free: 1.586 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.6504, allocations: 0 / 492.2 MB, free: 1.586 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.6504, allocations: 0 / 492.2 MB, free: 1.586 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.932e-05/0.6505, allocations: 0 / 492.2 MB, free: 1.586 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.009206/0.6597, allocations: 2.428 MB / 494.6 MB, free: 15.1 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.601e-05/0.6598, allocations: 12.03 kB / 494.6 MB, free: 15.09 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005046/0.6603, allocations: 181.5 kB / 494.8 MB, free: 14.9 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009843/0.6701, allocations: 0.8801 MB / 495.7 MB, free: 14.02 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00269/0.6729, allocations: 0.9391 MB / 496.6 MB, free: 13.04 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002023/0.6731, allocations: 118.2 kB / 496.7 MB, free: 12.92 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003117/0.6734, allocations: 116 kB / 496.8 MB, free: 12.81 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009506/0.683, allocations: 2.267 MB / 499.1 MB, free: 10.38 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.726e-05/0.6831, allocations: 7.938 kB / 499.1 MB, free: 10.38 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002436/0.6833, allocations: 60 kB / 499.2 MB, free: 10.32 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.371e-05/0.6834, allocations: 32 kB / 499.2 MB, free: 10.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01043/0.6938, allocations: 2.158 MB / 0.4896 GB, free: 8.117 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3211/1.015, allocations: 10.11 MB / 0.4995 GB, free: 120.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008028/1.023, allocations: 1.544 MB / 0.501 GB, free: 120.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06563/1.089, allocations: 17.24 MB / 0.5178 GB, free: 109.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.987e-05/1.089, allocations: 47 kB / 0.5179 GB, free: 109.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=80): time 3.466e-06/1.089, allocations: 0 / 0.5179 GB, free: 109.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=80): time 0.01188/1.101, allocations: 2.548 MB / 0.5203 GB, free: 107.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.584e-05/1.101, allocations: 273.5 kB / 0.5206 GB, free: 107.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001753/1.103, allocations: 0.9699 MB / 0.5216 GB, free: 106.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001557/1.103, allocations: 41.7 kB / 0.5216 GB, free: 106.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004943/1.103, allocations: 0.6886 MB / 0.5223 GB, free: 105.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002871/1.104, allocations: 274.2 kB / 0.5225 GB, free: 105.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.548e-05/1.104, allocations: 28 kB / 0.5226 GB, free: 105.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/1.104, allocations: 366.8 kB / 0.5229 GB, free: 105.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001896/1.106, allocations: 471.4 kB / 0.5234 GB, free: 104.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002217/1.108, allocations: 1.064 MB / 0.5244 GB, free: 103.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002149/1.11, allocations: 0.5857 MB / 0.525 GB, free: 102.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-05/1.11, allocations: 8 kB / 0.525 GB, free: 102.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=167) (initialization): time 0.005403/1.116, allocations: 1.533 MB / 0.5265 GB, free: 101.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003509/1.116, allocations: 0.6321 MB / 0.5271 GB, free: 100.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.127e-05/1.116, allocations: 23.98 kB / 0.5271 GB, free: 100.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.635e-05/1.116, allocations: 28 kB / 0.5271 GB, free: 100.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00244/1.119, allocations: 399.4 kB / 0.5275 GB, free: 100 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.906e-05/1.119, allocations: 35.86 kB / 0.5275 GB, free: 99.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002299/1.121, allocations: 265 kB / 0.5278 GB, free: 99.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002159/1.121, allocations: 83.98 kB / 0.5279 GB, free: 99.65 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/1.121, allocations: 5.406 kB / 0.5279 GB, free: 99.64 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005052/1.126, allocations: 1.444 MB / 0.5293 GB, free: 98.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.448e-05/1.126, allocations: 20 kB / 0.5293 GB, free: 98.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.123e-05/1.126, allocations: 28 kB / 0.5293 GB, free: 98.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002307/1.129, allocations: 392 kB / 0.5297 GB, free: 97.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.628e-05/1.129, allocations: 39.86 kB / 0.5298 GB, free: 97.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001705/1.131, allocations: 206.9 kB / 0.53 GB, free: 97.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001852/1.131, allocations: 79.81 kB / 0.53 GB, free: 97.46 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.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 (167): * Single equations (assignments): 167 * 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.0009009/1.132, allocations: 412.5 kB / 0.5304 GB, free: 97.04 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00034/1.132, allocations: 123.2 kB / 0.5305 GB, free: 96.92 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01064/1.143, allocations: 5.945 MB / 0.5363 GB, free: 90.97 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001016/1.143, allocations: 83.86 kB / 0.5364 GB, free: 90.89 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/1.143, allocations: 0 / 0.5364 GB, free: 90.89 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.109e-05/1.143, allocations: 7.969 kB / 0.5364 GB, free: 90.88 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004283/1.147, allocations: 2.771 MB / 0.5391 GB, free: 88.08 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.506e-05/1.147, allocations: 3.844 kB / 0.5391 GB, free: 88.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001604/1.149, allocations: 255.7 kB / 0.5394 GB, free: 87.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.414e-05/1.149, allocations: 8 kB / 0.5394 GB, free: 87.82 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.807e-05/1.149, allocations: 27.98 kB / 0.5394 GB, free: 87.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.085e-05/1.149, allocations: 4 kB / 0.5394 GB, free: 87.79 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.149, allocations: 0 / 0.5394 GB, free: 87.79 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005459/1.154, allocations: 2.84 MB / 0.5422 GB, free: 84.92 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000956/1.155, allocations: 0.5316 MB / 0.5427 GB, free: 84.37 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003056/1.156, allocations: 16 kB / 0.5427 GB, free: 84.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/1.157, allocations: 123.7 kB / 0.5428 GB, free: 84.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002318/1.157, allocations: 84.86 kB / 0.5429 GB, free: 84.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.733e-05/1.157, allocations: 32 kB / 0.543 GB, free: 84.12 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001535/1.159, allocations: 0.7504 MB / 0.5437 GB, free: 83.37 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.159, allocations: 0 / 0.5437 GB, free: 83.37 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006152/1.165, allocations: 1.656 MB / 0.5453 GB, free: 81.8 MB / 426.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: 56 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * 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.01299/1.178, allocations: 4.675 MB / 0.5499 GB, free: 77.31 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007579/1.186, allocations: 2.603 MB / 0.5524 GB, free: 74.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/1.186, allocations: 4.062 kB / 0.5524 GB, free: 74.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002778/1.189, allocations: 1.437 MB / 0.5538 GB, free: 73.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005021/1.194, allocations: 0.578 MB / 0.5544 GB, free: 72.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01367/1.207, allocations: 7.424 MB / 0.5616 GB, free: 65.12 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00132/1.209, allocations: 1.65 MB / 0.5633 GB, free: 63.43 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001533/1.21, allocations: 0.882 MB / 0.5641 GB, free: 62.55 MB / 426.7 MB Notification: Performance of SimCode: time 1.253e-06/1.21, allocations: 0 / 0.5641 GB, free: 62.55 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.786/4.996, allocations: 50.56 MB / 0.6135 GB, free: 11.94 MB / 426.7 MB