Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00127/0.00127, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001306/0.001306, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2203/0.2203, allocations: 46.11 MB / 344.3 MB, free: 11.43 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002189/0.002189, allocations: 79.88 kB / 480.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3371, allocations: 62.45 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001625/0.3388, allocations: 0.4887 MB / 0.5311 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00198/0.3408, allocations: 1.407 MB / 0.5324 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.677e-05/0.3409, allocations: 1.156 kB / 0.5324 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.98e-05/0.3409, allocations: 3.938 kB / 0.5324 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.511e-05/0.3409, allocations: 0 / 0.5324 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007409/0.3417, allocations: 224.7 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.651e-05/0.3417, allocations: 12.58 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.137e-05/0.3418, allocations: 1.406 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.866e-05/0.3418, allocations: 2.656 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.175e-05/0.3419, allocations: 5.438 kB / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.329e-05/0.3419, allocations: 5.312 kB / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004646/0.3424, allocations: 280.6 kB / 0.533 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.14e-05/0.3424, allocations: 0 / 0.533 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.445e-05/0.3424, allocations: 12.89 kB / 0.533 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002412/0.3427, allocations: 137.1 kB / 0.5331 GB, free: 11.44 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3427, allocations: 0 / 0.5331 GB, free: 11.44 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3427, allocations: 0 / 0.5331 GB, free: 11.44 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.846e-06/0.3427, allocations: 0 / 0.5331 GB, free: 11.44 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003792/0.3431, allocations: 337 kB / 0.5334 GB, free: 11.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.3431, allocations: 17 kB / 0.5334 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.743e-05/0.3432, allocations: 36.45 kB / 0.5335 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.519e-05/0.3432, allocations: 4.891 kB / 0.5335 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001046/0.3433, allocations: 162.2 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.388e-06/0.3433, allocations: 384 / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.839e-06/0.3433, allocations: 2.281 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001047/0.3434, allocations: 43.25 kB / 0.5337 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.3435, allocations: 0 / 0.5337 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.3435, allocations: 0 / 0.5337 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.3435, allocations: 3.938 kB / 0.5337 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.821e-05/0.3435, allocations: 5.438 kB / 0.5337 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000356/0.3439, allocations: 255.9 kB / 0.5339 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.415e-05/0.3439, allocations: 16.45 kB / 0.5339 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.738e-05/0.344, allocations: 6.609 kB / 0.5339 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.506e-06/0.344, allocations: 0 / 0.5339 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.344, allocations: 32.31 kB / 0.534 GB, free: 10.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.344, allocations: 4 kB / 0.534 GB, free: 10.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001502/0.3442, allocations: 43.03 kB / 0.534 GB, free: 10.37 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.691e-05/0.3442, allocations: 53.19 kB / 0.5341 GB, free: 10.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.327e-05/0.3443, allocations: 91.64 kB / 0.5342 GB, free: 10.21 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/0.3443, allocations: 27.48 kB / 0.5342 GB, free: 10.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.728e-05/0.3444, allocations: 92.08 kB / 0.5343 GB, free: 10.08 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.735e-06/0.3444, allocations: 9.703 kB / 0.5343 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.339e-05/0.3444, allocations: 21.52 kB / 0.5343 GB, free: 10.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.3446, allocations: 314.8 kB / 0.5346 GB, free: 9.734 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.352e-05/0.3446, allocations: 5.812 kB / 0.5346 GB, free: 9.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.661e-05/0.3446, allocations: 18.3 kB / 0.5346 GB, free: 9.707 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.327e-05/0.3447, allocations: 28.92 kB / 0.5347 GB, free: 9.676 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.3447, allocations: 4 kB / 0.5347 GB, free: 9.672 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.173e-05/0.3448, allocations: 46.03 kB / 0.5347 GB, free: 9.633 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.3448, allocations: 5.5 kB / 0.5347 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.3448, allocations: 1.375 kB / 0.5347 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.3448, allocations: 96 / 0.5347 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.251e-05/0.3449, allocations: 13.47 kB / 0.5347 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.3449, allocations: 1.375 kB / 0.5347 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.68e-05/0.3449, allocations: 1.375 kB / 0.5347 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.3449, allocations: 5.469 kB / 0.5347 GB, free: 9.621 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.563e-05/0.345, allocations: 115.2 kB / 0.5348 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.047e-05/0.345, allocations: 1.375 kB / 0.5348 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001037/0.3451, allocations: 49 kB / 0.5349 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.3451, allocations: 0 / 0.5349 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.3451, allocations: 5.375 kB / 0.5349 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.3452, allocations: 0 / 0.5349 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001562/0.3453, allocations: 152.4 kB / 0.535 GB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.397e-06/0.3453, allocations: 3.984 kB / 0.535 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.173e-06/0.3453, allocations: 5.312 kB / 0.535 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.3453, allocations: 0 / 0.535 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-06/0.3454, allocations: 1.375 kB / 0.535 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3454, allocations: 0 / 0.535 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3454, allocations: 0 / 0.535 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001056/0.3455, allocations: 135.7 kB / 0.5352 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.311e-05/0.3455, allocations: 85.12 kB / 0.5353 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.068e-05/0.3455, allocations: 1.375 kB / 0.5353 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.486e-05/0.3456, allocations: 1.375 kB / 0.5353 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.929e-06/0.3456, allocations: 0 / 0.5353 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.488e-06/0.3456, allocations: 1.375 kB / 0.5353 GB, free: 9.008 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.348e-05/0.3457, allocations: 76.66 kB / 0.5353 GB, free: 8.934 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3457, allocations: 1.375 kB / 0.5353 GB, free: 8.934 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000273/0.346, allocations: 38.31 kB / 0.5354 GB, free: 8.93 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005801/0.3465, allocations: 0.7113 MB / 0.5361 GB, free: 8.238 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.817e-05/0.3466, allocations: 12.19 kB / 0.5361 GB, free: 8.234 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3466, allocations: 0 / 0.5361 GB, free: 8.234 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.512e-05/0.3467, allocations: 32.39 kB / 0.5361 GB, free: 8.199 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002039/0.3469, allocations: 14.97 kB / 0.5361 GB, free: 8.188 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003727/0.3473, allocations: 123.1 kB / 0.5362 GB, free: 8.043 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.3476, allocations: 0.6755 MB / 0.5369 GB, free: 7.344 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.744e-05/0.3476, allocations: 1.375 kB / 0.5369 GB, free: 7.344 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.258e-05/0.3476, allocations: 12.75 kB / 0.5369 GB, free: 7.332 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3476, allocations: 0 / 0.5369 GB, free: 7.332 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02367/0.3713, allocations: 1.871 MB / 0.5387 GB, free: 6.297 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.801/8.172, allocations: 9.609 kB / 0.5388 GB, free: 6.293 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1)