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.TestValveCoefficients.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.TestValveCoefficients,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.047/2.047, allocations: 209.2 MB / 224.8 MB, free: 0.6797 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006474/0.0006476, allocations: 12 kB / 282.6 MB, free: 9.602 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1072, allocations: 48.71 MB / 331.3 MB, free: 8.801 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients): time 0.3694/0.4766, allocations: 67.66 MB / 398.9 MB, free: 1.199 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.06474/0.5414, allocations: 24.28 MB / 423.2 MB, free: 8.867 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002799/0.5443, allocations: 63.44 kB / 423.3 MB, free: 8.805 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004902/0.5492, allocations: 0.9878 MB / 424.3 MB, free: 7.812 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01757/0.5669, allocations: 4.055 MB / 428.3 MB, free: 3.746 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02606/0.593, allocations: 6.107 MB / 434.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006043/0.599, allocations: 2.347 MB / 436.8 MB, free: 11.29 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002028/0.6011, allocations: 0.7952 MB / 437.6 MB, free: 10.46 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003897/0.6051, allocations: 1.195 MB / 438.8 MB, free: 9.262 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00182/0.6069, allocations: 0.7548 MB / 439.5 MB, free: 8.504 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003345/0.6073, allocations: 63.98 kB / 439.6 MB, free: 8.441 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02485/0.6322, allocations: 8.105 MB / 447.7 MB, free: 336 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008132/0.633, allocations: 302.9 kB / 448 MB, free: 32 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007341/0.6338, allocations: 333 kB / 448.3 MB, free: 15.7 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01305/0.6468, allocations: 4.564 MB / 452.9 MB, free: 11.12 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.6469, allocations: 3.938 kB / 452.9 MB, free: 11.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.6469, allocations: 0 / 452.9 MB, free: 11.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.811e-05/0.647, allocations: 0 / 452.9 MB, free: 11.12 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.008794/0.6558, allocations: 2.361 MB / 455.3 MB, free: 8.707 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/0.6558, allocations: 8.031 kB / 455.3 MB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004625/0.6563, allocations: 181.5 kB / 455.4 MB, free: 8.512 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01071/0.667, allocations: 0.8333 MB / 456.3 MB, free: 7.676 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002697/0.6698, allocations: 0.9391 MB / 457.2 MB, free: 6.695 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001777/0.67, allocations: 106.4 kB / 457.3 MB, free: 6.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002766/0.6703, allocations: 112 kB / 457.4 MB, free: 6.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009019/0.6793, allocations: 2.271 MB / 459.7 MB, free: 4.051 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.9e-05/0.6794, allocations: 7.938 kB / 459.7 MB, free: 4.043 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002265/0.6796, allocations: 56 kB / 459.8 MB, free: 3.988 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.217e-05/0.6797, allocations: 35.95 kB / 459.8 MB, free: 3.953 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01019/0.6899, allocations: 2.166 MB / 462 MB, free: 1.777 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01764/0.7076, allocations: 10.11 MB / 472.1 MB, free: 6.836 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007423/0.7151, allocations: 1.556 MB / 473.6 MB, free: 5.27 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06897/0.7841, allocations: 17.22 MB / 490.8 MB, free: 2.383 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.047e-05/0.7842, allocations: 47.22 kB / 490.9 MB, free: 2.328 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 2.876e-06/0.7842, allocations: 0 / 490.9 MB, free: 2.328 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.01253/0.7968, allocations: 2.549 MB / 493.4 MB, free: 15.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001513/0.797, allocations: 269.7 kB / 493.7 MB, free: 15.45 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001902/0.7989, allocations: 0.965 MB / 494.7 MB, free: 14.46 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001087/0.799, allocations: 41.7 kB / 494.7 MB, free: 14.42 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006411/0.7997, allocations: 0.6909 MB / 495.4 MB, free: 13.72 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003377/0.8, allocations: 284 kB / 495.7 MB, free: 13.44 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.8001, allocations: 28 kB / 495.7 MB, free: 13.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.8003, allocations: 362.8 kB / 496.1 MB, free: 13.05 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001947/0.8023, allocations: 467.7 kB / 496.5 MB, free: 12.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002482/0.8048, allocations: 1.065 MB / 497.6 MB, free: 11.24 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002213/0.807, allocations: 0.584 MB / 498.2 MB, free: 10.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.347e-05/0.807, allocations: 4 kB / 498.2 MB, free: 10.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=167) (initialization): time 0.005461/0.8125, allocations: 1.531 MB / 499.7 MB, free: 9.125 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005502/0.8131, allocations: 0.6442 MB / 0.4886 GB, free: 8.223 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.861e-05/0.8131, allocations: 20 kB / 0.4886 GB, free: 8.203 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.543e-05/0.8132, allocations: 35.98 kB / 0.4887 GB, free: 8.168 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002404/0.8156, allocations: 395.4 kB / 0.489 GB, free: 7.781 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.401e-05/0.8157, allocations: 39.86 kB / 0.4891 GB, free: 7.742 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002266/0.818, allocations: 258.2 kB / 0.4893 GB, free: 7.488 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001981/0.8182, allocations: 87.97 kB / 0.4894 GB, free: 7.402 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.027e-05/0.8182, allocations: 4 kB / 0.4894 GB, free: 7.398 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005138/0.8233, allocations: 1.439 MB / 0.4908 GB, free: 5.961 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.912e-05/0.8234, allocations: 20.97 kB / 0.4908 GB, free: 5.941 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.458e-05/0.8235, allocations: 28 kB / 0.4909 GB, free: 5.914 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002317/0.8258, allocations: 391.4 kB / 0.4912 GB, free: 5.531 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.146e-05/0.8258, allocations: 43.86 kB / 0.4913 GB, free: 5.488 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001652/0.8275, allocations: 210.9 kB / 0.4915 GB, free: 5.281 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000176/0.8277, allocations: 79.97 kB / 0.4916 GB, free: 5.203 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.0008918/0.8286, allocations: 408.5 kB / 0.492 GB, free: 4.793 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003315/0.8289, allocations: 122.5 kB / 0.4921 GB, free: 4.672 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2844/1.113, allocations: 5.939 MB / 0.4979 GB, free: 143.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001317/1.114, allocations: 83.56 kB / 0.498 GB, free: 143.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/1.114, allocations: 3.281 kB / 0.498 GB, free: 143.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.097e-05/1.114, allocations: 5.297 kB / 0.498 GB, free: 143.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00486/1.119, allocations: 2.768 MB / 0.5007 GB, free: 142.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.442e-05/1.119, allocations: 1.125 kB / 0.5007 GB, free: 142.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001689/1.12, allocations: 254.7 kB / 0.5009 GB, free: 142.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.451e-05/1.12, allocations: 4.062 kB / 0.5009 GB, free: 142.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.124e-05/1.12, allocations: 36.27 kB / 0.5009 GB, free: 142.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.959e-06/1.12, allocations: 2.438 kB / 0.5009 GB, free: 142.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/1.12, allocations: 1.406 kB / 0.5009 GB, free: 142.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005876/1.126, allocations: 2.833 MB / 0.5037 GB, free: 141.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/1.127, allocations: 0.5237 MB / 0.5042 GB, free: 140.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003068/1.128, allocations: 23.05 kB / 0.5042 GB, free: 140.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/1.129, allocations: 131.3 kB / 0.5044 GB, free: 140.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002565/1.129, allocations: 84.53 kB / 0.5045 GB, free: 140.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.773e-05/1.13, allocations: 35.75 kB / 0.5045 GB, free: 140.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001656/1.131, allocations: 0.7466 MB / 0.5052 GB, free: 140.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.131, allocations: 3.938 kB / 0.5052 GB, free: 140.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006984/1.138, allocations: 1.647 MB / 0.5068 GB, free: 140.1 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.0138/1.152, allocations: 4.649 MB / 0.5114 GB, free: 138.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007975/1.16, allocations: 2.608 MB / 0.5139 GB, free: 137.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/1.16, allocations: 5.375 kB / 0.5139 GB, free: 137.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002933/1.163, allocations: 1.434 MB / 0.5153 GB, free: 136.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005524/1.169, allocations: 0.5851 MB / 0.5159 GB, free: 136.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01432/1.183, allocations: 7.417 MB / 0.5231 GB, free: 132.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001167/1.184, allocations: 1.652 MB / 0.5248 GB, free: 131.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00145/1.186, allocations: 0.877 MB / 0.5256 GB, free: 130.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.162e-06/1.186, allocations: 3.938 kB / 0.5256 GB, free: 130.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.853/5.039, allocations: 50.42 MB / 0.5748 GB, free: 85.16 MB / 426.7 MB