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.001719/0.001719, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002086/0.002086, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.8 MB, free: 10.54 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.2262/0.2262, 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.002406/0.002407, allocations: 83.33 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1181, allocations: 62.45 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001619/0.1197, allocations: 494.7 kB / 480.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.1217, allocations: 1.403 MB / 482.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.166e-05/0.1217, allocations: 3.938 kB / 482.1 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.131e-05/0.1217, allocations: 0 / 482.1 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.908e-05/0.1218, allocations: 3.938 kB / 482.1 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006696/0.1224, allocations: 227.3 kB / 482.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.928e-05/0.1225, allocations: 7.938 kB / 482.3 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.773e-05/0.1225, allocations: 7.984 kB / 482.3 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.634e-05/0.1225, allocations: 4 kB / 482.3 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.097e-05/0.1226, allocations: 4 kB / 482.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.053e-05/0.1226, allocations: 0 / 482.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004475/0.1231, allocations: 279.6 kB / 482.6 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.327e-05/0.1231, allocations: 4 kB / 482.6 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.194e-05/0.1231, allocations: 7.938 kB / 482.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002282/0.1233, allocations: 143.7 kB / 482.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1234, allocations: 7.984 kB / 482.8 MB, free: 2.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1234, allocations: 0 / 482.8 MB, free: 2.535 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.1234, allocations: 4 kB / 482.8 MB, free: 2.531 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003743/0.1238, allocations: 331.6 kB / 483.1 MB, free: 2.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.1238, allocations: 8.031 kB / 483.1 MB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.107e-05/0.1238, allocations: 34.75 kB / 483.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.335e-05/0.1239, allocations: 0.9375 kB / 483.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.124, allocations: 168.3 kB / 483.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-06/0.124, allocations: 384 / 483.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.268e-06/0.124, allocations: 384 / 483.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001113/0.1241, allocations: 45.81 kB / 483.4 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.1241, allocations: 4 kB / 483.4 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-06/0.1242, allocations: 0 / 483.4 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.1242, allocations: 0 / 483.4 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.91e-05/0.1242, allocations: 4 kB / 483.4 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003643/0.1246, allocations: 244.9 kB / 483.6 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.227e-05/0.1246, allocations: 18.52 kB / 483.6 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.792e-05/0.1246, allocations: 12.92 kB / 483.6 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.534e-06/0.1247, allocations: 0 / 483.6 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.1247, allocations: 30.56 kB / 483.7 MB, free: 1.477 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.1247, allocations: 3.938 kB / 483.7 MB, free: 1.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001354/0.1248, allocations: 45.59 kB / 483.7 MB, free: 1.422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/0.1249, allocations: 55.34 kB / 483.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.13e-05/0.125, allocations: 94.14 kB / 483.9 MB, free: 1.254 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.125, allocations: 25.95 kB / 483.9 MB, free: 1.223 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.973e-05/0.125, allocations: 88.08 kB / 484 MB, free: 1.133 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.031e-05/0.125, allocations: 11.89 kB / 484 MB, free: 1.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.247e-05/0.1251, allocations: 13.72 kB / 484 MB, free: 1.102 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.1252, allocations: 314.8 kB / 484.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.255e-05/0.1252, allocations: 7.938 kB / 484.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.738e-05/0.1253, allocations: 22.58 kB / 484.3 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.995e-05/0.1253, allocations: 30.5 kB / 484.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.1253, allocations: 0 / 484.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.639e-05/0.1254, allocations: 45.64 kB / 484.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.1254, allocations: 8 kB / 484.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1254, allocations: 0 / 484.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.1255, allocations: 3.984 kB / 484.4 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.387e-05/0.1255, allocations: 8.094 kB / 484.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.1255, allocations: 4 kB / 484.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.517e-05/0.1255, allocations: 0 / 484.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-06/0.1256, allocations: 0 / 484.4 MB, free: 0.6328 MB / 350.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.587e-05/0.1256, allocations: 117.8 kB / 484.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.285e-05/0.1257, allocations: 0 / 484.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001084/0.1258, allocations: 52.83 kB / 484.6 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1258, allocations: 0 / 484.6 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.1258, allocations: 0 / 484.6 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.1258, allocations: 0 / 484.6 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.126, allocations: 165.5 kB / 484.8 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.126, allocations: 0 / 484.8 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.776e-06/0.126, allocations: 4 kB / 484.8 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.126, allocations: 4 kB / 484.8 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.16e-06/0.126, allocations: 0 / 484.8 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.126, allocations: 0 / 484.8 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.126, allocations: 0 / 484.8 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001022/0.1261, allocations: 139.5 kB / 484.9 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.156e-05/0.1262, allocations: 77.11 kB / 485 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.005e-05/0.1262, allocations: 3.938 kB / 485 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.004e-05/0.1263, allocations: 0 / 485 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.44e-05/0.1263, allocations: 7.938 kB / 485 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-06/0.1263, allocations: 0 / 485 MB, free: 15.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.19e-05/0.1264, allocations: 79.31 kB / 485.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1264, allocations: 0 / 485.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003371/0.1267, allocations: 43.98 kB / 485.1 MB, free: 15.86 MB / 366.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.0006151/0.1273, allocations: 0.7007 MB / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.299e-05/0.1274, allocations: 16.19 kB / 485.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.1274, allocations: 0 / 485.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.447e-05/0.1275, allocations: 29.7 kB / 485.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002032/0.1277, allocations: 2.234 kB / 485.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003801/0.1281, allocations: 134.5 kB / 486 MB, free: 14.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.1284, allocations: 0.6729 MB / 486.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.672e-05/0.1284, allocations: 4 kB / 486.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.519e-05/0.1285, allocations: 11.56 kB / 486.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1285, allocations: 0 / 486.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02281/0.1513, allocations: 1.85 MB / 488.5 MB, free: 12.42 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.76/7.912, allocations: 12.58 kB / 488.5 MB, free: 12.41 MB / 366.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)