Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.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.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",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.01569/0.01569, allocations: 106.7 kB / 15.06 MB, free: 5.551 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.002021/0.00202, allocations: 180.7 kB / 15.95 MB, free: 5.516 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.014/2.014, allocations: 194.6 MB / 211.3 MB, free: 11.04 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.3431/0.3431, allocations: 40.04 MB / 296.5 MB, free: 6.289 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004802/0.0004804, allocations: 19.94 kB / 361.2 MB, free: 9.535 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1208, allocations: 54.87 MB / 416 MB, free: 2.57 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics): time 0.4171/0.538, allocations: 68.24 MB / 484.3 MB, free: 26.77 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05296/0.591, allocations: 24.58 MB / 0.4969 GB, free: 9.805 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002571/0.5936, allocations: 59.34 kB / 0.497 GB, free: 9.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004487/0.5982, allocations: 0.9899 MB / 0.4979 GB, free: 9.207 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01863/0.6169, allocations: 4.1 MB / 0.502 GB, free: 7.031 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02733/0.6442, allocations: 6.201 MB / 0.508 GB, free: 3.773 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005655/0.6499, allocations: 2.201 MB / 0.5102 GB, free: 2.625 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00208/0.652, allocations: 0.8122 MB / 0.511 GB, free: 2.32 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004367/0.6565, allocations: 1.21 MB / 0.5121 GB, free: 1.777 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002356/0.6589, allocations: 0.7636 MB / 0.5129 GB, free: 1.465 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004318/0.6593, allocations: 63.44 kB / 0.5129 GB, free: 1.461 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02748/0.6868, allocations: 8.264 MB / 0.521 GB, free: 14.69 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009561/0.6879, allocations: 300.7 kB / 0.5213 GB, free: 14.48 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001136/0.689, allocations: 337.8 kB / 0.5216 GB, free: 14.31 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01454/0.7036, allocations: 4.633 MB / 0.5261 GB, free: 11.55 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.7037, allocations: 0 / 0.5261 GB, free: 11.55 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.7037, allocations: 0 / 0.5261 GB, free: 11.55 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.752e-05/0.7038, allocations: 0 / 0.5261 GB, free: 11.55 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.009479/0.7133, allocations: 2.462 MB / 0.5285 GB, free: 9.898 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.7133, allocations: 9.656 kB / 0.5286 GB, free: 9.898 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005576/0.7139, allocations: 179.9 kB / 0.5287 GB, free: 9.754 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01028/0.7242, allocations: 0.8767 MB / 0.5296 GB, free: 9.34 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002786/0.727, allocations: 0.9429 MB / 0.5305 GB, free: 8.355 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001893/0.7273, allocations: 106.4 kB / 0.5306 GB, free: 8.25 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00032/0.7276, allocations: 123.9 kB / 0.5307 GB, free: 8.129 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009406/0.737, allocations: 2.275 MB / 0.5329 GB, free: 5.695 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.024e-05/0.7371, allocations: 7.938 kB / 0.533 GB, free: 5.688 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002507/0.7374, allocations: 56 kB / 0.533 GB, free: 5.633 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.594e-05/0.7375, allocations: 32 kB / 0.533 GB, free: 5.602 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01052/0.748, allocations: 2.197 MB / 0.5352 GB, free: 3.395 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01927/0.7673, allocations: 9.808 MB / 0.5448 GB, free: 8.836 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0117/0.7791, allocations: 1.629 MB / 0.5464 GB, free: 7.195 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.105/0.8841, allocations: 19.06 MB / 0.565 GB, free: 2.367 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.492e-05/0.8843, allocations: 47.55 kB / 0.565 GB, free: 2.312 MB / 426.7 MB Notification: Performance of pre-optimization done (n=88): time 6.833e-06/0.8843, allocations: 7.938 kB / 0.565 GB, free: 2.305 MB / 426.7 MB Notification: Performance of matching and sorting (n=88): time 0.02518/0.9095, allocations: 2.747 MB / 0.5677 GB, free: 15.55 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002641/0.9098, allocations: 274 kB / 0.568 GB, free: 15.23 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002629/0.9125, allocations: 0.8603 MB / 0.5688 GB, free: 14.35 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002634/0.9128, allocations: 45.7 kB / 0.5688 GB, free: 14.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009993/0.9138, allocations: 0.6654 MB / 0.5695 GB, free: 13.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005947/0.9144, allocations: 303.8 kB / 0.5698 GB, free: 13.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.9146, allocations: 24 kB / 0.5698 GB, free: 13.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002752/0.9149, allocations: 361.9 kB / 0.5702 GB, free: 12.94 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003555/0.9185, allocations: 486.3 kB / 0.5706 GB, free: 12.46 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004275/0.9228, allocations: 1.039 MB / 0.5716 GB, free: 11.16 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003939/0.9268, allocations: 0.6059 MB / 0.5722 GB, free: 10.55 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.129e-05/0.9268, allocations: 4 kB / 0.5722 GB, free: 10.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.01007/0.9369, allocations: 1.607 MB / 0.5738 GB, free: 8.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.004307/0.9413, allocations: 6.875 MB / 0.5805 GB, free: 1.516 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.33e-05/0.9414, allocations: 20 kB / 0.5805 GB, free: 1.496 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.584e-05/0.9416, allocations: 31.98 kB / 0.5806 GB, free: 1.465 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003783/0.9454, allocations: 391.4 kB / 0.5809 GB, free: 1.082 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.105e-05/0.9455, allocations: 35.86 kB / 0.581 GB, free: 1.047 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003296/0.9488, allocations: 234.4 kB / 0.5812 GB, free: 0.8164 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003638/0.9492, allocations: 83.91 kB / 0.5813 GB, free: 0.7344 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.98e-05/0.9493, allocations: 4 kB / 0.5813 GB, free: 0.7305 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008997/0.9583, allocations: 1.466 MB / 0.5827 GB, free: 15.26 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.103e-05/0.9584, allocations: 20.03 kB / 0.5827 GB, free: 15.24 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.562e-05/0.9584, allocations: 28 kB / 0.5828 GB, free: 15.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003658/0.9621, allocations: 387.4 kB / 0.5831 GB, free: 14.83 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.63e-05/0.9623, allocations: 35.86 kB / 0.5832 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003143/0.9654, allocations: 206.8 kB / 0.5834 GB, free: 14.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003883/0.9659, allocations: 79.97 kB / 0.5834 GB, free: 14.52 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * Number of states: 0 () * Number of discrete variables: 16 (source2.medium.phase,sink2.medium.phase,source1.medium.phase,sink1.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase,valve_equalPercentage.state_b.phase,valve_equalPercentage.state_a.phase,valve_quadratic.state_b.phase,valve_quadratic.state_a.phase,valve_constant.state_b.phase,valve_constant.state_a.phase,valve_linear.state_b.phase,valve_linear.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 165 * 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.00138/0.9673, allocations: 416.5 kB / 0.5838 GB, free: 14.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005052/0.9678, allocations: 122.6 kB / 0.5839 GB, free: 13.98 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01462/0.9824, allocations: 6.084 MB / 0.5899 GB, free: 7.895 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001211/0.9826, allocations: 83.86 kB / 0.59 GB, free: 7.812 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.9826, allocations: 0 / 0.59 GB, free: 7.812 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-05/0.9827, allocations: 3.984 kB / 0.59 GB, free: 7.809 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005218/0.9879, allocations: 2.81 MB / 0.5927 GB, free: 4.941 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.643e-05/0.988, allocations: 3.938 kB / 0.5927 GB, free: 4.938 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002046/0.9901, allocations: 291.7 kB / 0.593 GB, free: 4.652 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.719e-05/0.9901, allocations: 4 kB / 0.593 GB, free: 4.648 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/0.9902, allocations: 23.98 kB / 0.593 GB, free: 4.625 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.876e-05/0.9903, allocations: 4 kB / 0.593 GB, free: 4.621 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.9903, allocations: 4 kB / 0.593 GB, free: 4.617 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007176/0.9975, allocations: 2.975 MB / 0.5959 GB, free: 1.613 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/0.9987, allocations: 0.5316 MB / 0.5965 GB, free: 1.059 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002677/0.999, allocations: 20 kB / 0.5965 GB, free: 1.039 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001434/1, allocations: 131.8 kB / 0.5966 GB, free: 0.9102 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002699/1.001, allocations: 88.86 kB / 0.5967 GB, free: 0.8242 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/1.001, allocations: 36 kB / 0.5967 GB, free: 0.7891 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001389/1.002, allocations: 0.6668 MB / 0.5974 GB, free: 124 kB / 458.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.002, allocations: 0 / 0.5974 GB, free: 124 kB / 458.7 MB Notification: Performance of remove unused functions: time 0.007189/1.009, allocations: 1.65 MB / 0.599 GB, free: 14.47 MB / 474.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 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.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,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,source1.medium.phase,sink1.medium.phase,source2.medium.phase,sink2.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 96 * 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.01602/1.026, allocations: 4.803 MB / 0.6037 GB, free: 9.645 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009083/1.035, allocations: 2.702 MB / 0.6063 GB, free: 6.949 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/1.035, allocations: 0 / 0.6063 GB, free: 6.949 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00365/1.038, allocations: 1.508 MB / 0.6078 GB, free: 5.445 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00547/1.044, allocations: 0.5775 MB / 0.6083 GB, free: 4.879 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3542/1.398, allocations: 22.67 MB / 0.6305 GB, free: 158.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/1.399, allocations: 1.657 MB / 0.6321 GB, free: 157.5 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004766/1.404, allocations: 1.955 MB / 0.634 GB, free: 157.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001516/1.406, allocations: 0.8764 MB / 0.6349 GB, free: 157.4 MB / 490.7 MB Notification: Performance of SimCode: time 1.332e-06/1.406, allocations: 0 / 0.6349 GB, free: 157.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.238/1.644, allocations: 75.64 MB / 0.7087 GB, free: 113.4 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002549/1.644, allocations: 243.6 kB / 0.709 GB, free: 113.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.7/9.345, allocations: 0 / 0.709 GB, free: 113.1 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat does not exist to compare? outputFormat=mat