Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001524/0.001524, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001456/0.001457, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2289/0.2289, allocations: 46.12 MB / 344.2 MB, free: 11.55 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.002251/0.002251, allocations: 82.98 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1205, allocations: 62.44 MB / 480.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001722/0.1222, allocations: 491.7 kB / 480.7 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001898/0.1241, allocations: 1.403 MB / 482.1 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.363e-05/0.1242, allocations: 0 / 482.1 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.411e-05/0.1242, allocations: 3.938 kB / 482.1 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.074e-05/0.1242, allocations: 0 / 482.1 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006897/0.1249, allocations: 227.4 kB / 482.3 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.077e-05/0.125, allocations: 19.86 kB / 482.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.997e-05/0.125, allocations: 0 / 482.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.038e-05/0.1251, allocations: 4 kB / 482.3 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.757e-05/0.1251, allocations: 3.984 kB / 482.3 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.268e-05/0.1251, allocations: 0 / 482.3 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004411/0.1256, allocations: 275.6 kB / 482.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.454e-05/0.1256, allocations: 4 kB / 482.6 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.204e-05/0.1256, allocations: 7.938 kB / 482.6 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000239/0.1259, allocations: 143.7 kB / 482.8 MB, free: 2.562 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1259, allocations: 4 kB / 482.8 MB, free: 2.559 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1259, allocations: 4 kB / 482.8 MB, free: 2.555 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.1259, allocations: 0 / 482.8 MB, free: 2.555 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003861/0.1263, allocations: 335.5 kB / 483.1 MB, free: 2.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.1263, allocations: 8.031 kB / 483.1 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.002e-05/0.1264, allocations: 34.75 kB / 483.1 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.367e-05/0.1264, allocations: 0.9375 kB / 483.1 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.1266, allocations: 168.3 kB / 483.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.859e-06/0.1266, allocations: 384 / 483.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.398e-06/0.1266, allocations: 4.359 kB / 483.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.884e-05/0.1267, allocations: 41.83 kB / 483.3 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.1267, allocations: 0 / 483.3 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.076e-06/0.1267, allocations: 0 / 483.3 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-06/0.1267, allocations: 0 / 483.3 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.325e-05/0.1267, allocations: 3.984 kB / 483.3 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001587/0.1269, allocations: 149.7 kB / 483.5 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.139e-05/0.127, allocations: 22.55 kB / 483.5 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.792e-05/0.127, allocations: 12.86 kB / 483.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.056e-06/0.127, allocations: 0 / 483.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.127, allocations: 34.5 kB / 483.6 MB, free: 1.586 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.127, allocations: 3.938 kB / 483.6 MB, free: 1.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001269/0.1272, allocations: 41.69 kB / 483.6 MB, free: 1.535 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.1272, allocations: 51.41 kB / 483.7 MB, free: 1.473 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.367e-05/0.1273, allocations: 101.9 kB / 483.8 MB, free: 1.363 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.1274, allocations: 29.83 kB / 483.8 MB, free: 1.328 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.248e-05/0.1274, allocations: 80.14 kB / 483.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.972e-05/0.1274, allocations: 288 / 483.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.138e-05/0.1275, allocations: 13.72 kB / 483.9 MB, free: 1.227 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1276, allocations: 314.8 kB / 484.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.091e-05/0.1276, allocations: 0 / 484.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.237e-05/0.1276, allocations: 4 kB / 484.2 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.059e-05/0.1277, allocations: 16.92 kB / 484.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1277, allocations: 0 / 484.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.317e-05/0.1278, allocations: 37.58 kB / 484.2 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.1278, allocations: 10.66 kB / 484.3 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.1278, allocations: 0 / 484.3 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.1278, allocations: 0 / 484.3 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.354e-05/0.1279, allocations: 0 / 484.3 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.1279, allocations: 3.984 kB / 484.3 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.464e-05/0.1279, allocations: 7.938 kB / 484.3 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.191e-06/0.1279, allocations: 0 / 484.3 MB, free: 0.8242 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (1): * Single equations (assignments): 1 * 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.542e-05/0.128, allocations: 109.9 kB / 484.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.097e-05/0.128, allocations: 3.938 kB / 484.4 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001202/0.1281, allocations: 48.81 kB / 484.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.1281, allocations: 0 / 484.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1281, allocations: 0 / 484.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1282, allocations: 0 / 484.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.1283, allocations: 157.6 kB / 484.6 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.756e-06/0.1283, allocations: 7.984 kB / 484.6 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.62e-06/0.1283, allocations: 7.938 kB / 484.6 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.173e-06/0.1283, allocations: 0 / 484.6 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.52e-06/0.1283, allocations: 0 / 484.6 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1283, allocations: 0 / 484.6 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1283, allocations: 0 / 484.6 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.698e-05/0.1284, allocations: 57.05 kB / 484.6 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.947e-05/0.1285, allocations: 93.06 kB / 484.7 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.069e-05/0.1285, allocations: 3.938 kB / 484.7 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.103e-05/0.1285, allocations: 0 / 484.7 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.391e-05/0.1286, allocations: 4 kB / 484.7 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.1286, allocations: 4 kB / 484.8 MB, free: 244 kB / 350.1 MB Notification: Performance of sorting global known variables: time 3.832e-05/0.1286, allocations: 75.28 kB / 484.8 MB, free: 168 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1286, allocations: 0 / 484.8 MB, free: 168 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002511/0.1289, allocations: 43.98 kB / 484.9 MB, free: 124 kB / 350.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.0005333/0.1294, allocations: 0.6397 MB / 485.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.041e-05/0.1295, allocations: 8 kB / 485.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1295, allocations: 0 / 485.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.509e-05/0.1296, allocations: 29.7 kB / 485.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001362/0.1297, allocations: 2.391 kB / 485.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003462/0.1301, allocations: 138.5 kB / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.1303, allocations: 0.6729 MB / 486.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.724e-05/0.1304, allocations: 4 kB / 486.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.141e-05/0.1304, allocations: 7.438 kB / 486.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1304, allocations: 0 / 486.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02364/0.154, allocations: 1.864 MB / 488.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.828/7.982, allocations: 5.016 kB / 488.2 MB, free: 12.74 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_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_Test01RegFun3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1)