Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.TestRegFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",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: 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.001394/0.001394, 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.447/1.447, allocations: 227.4 MB / 246.8 MB, free: 10.53 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.2353/0.2353, allocations: 46.13 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.002308/0.002308, allocations: 80.61 kB / 417.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1329, allocations: 62.46 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001763/0.1347, allocations: 0.5191 MB / 480.7 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004194/0.1351, allocations: 158.2 kB / 480.9 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.499e-05/0.1351, allocations: 0 / 480.9 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.345e-05/0.1352, allocations: 3.938 kB / 480.9 MB, free: 4.457 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002393/0.1354, allocations: 39.81 kB / 480.9 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.356e-06/0.1354, allocations: 0 / 480.9 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.682e-05/0.1355, allocations: 23.86 kB / 480.9 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.238e-05/0.1355, allocations: 4 kB / 481 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.422e-05/0.1356, allocations: 11.94 kB / 481 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.899e-05/0.1356, allocations: 11.92 kB / 481 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.223e-05/0.1356, allocations: 4 kB / 481 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001255/0.1358, allocations: 51.94 kB / 481 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.213e-05/0.1358, allocations: 11.92 kB / 481 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.15e-05/0.1358, allocations: 7.938 kB / 481 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001253/0.1359, allocations: 43.88 kB / 481.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.136, allocations: 0 / 481.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.136, allocations: 3.938 kB / 481.1 MB, free: 4.246 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.136, allocations: 0 / 481.1 MB, free: 4.246 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000373/0.1364, allocations: 339.8 kB / 481.4 MB, free: 3.863 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.1364, allocations: 15.97 kB / 481.4 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.156e-05/0.1365, allocations: 42.73 kB / 481.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.031e-05/0.1365, allocations: 8.844 kB / 481.5 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001414/0.1366, allocations: 164.3 kB / 481.7 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.1367, allocations: 4.375 kB / 481.7 MB, free: 3.586 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.1367, allocations: 384 / 481.7 MB, free: 3.586 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001525/0.1368, allocations: 62.23 kB / 481.7 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.1369, allocations: 3.938 kB / 481.7 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.328e-06/0.1369, allocations: 0 / 481.7 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.271e-06/0.1369, allocations: 4 kB / 481.7 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001108/0.137, allocations: 59.89 kB / 481.8 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002266/0.1372, allocations: 161.7 kB / 481.9 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001407/0.1374, allocations: 82.55 kB / 482 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.864e-05/0.1374, allocations: 28.84 kB / 482.1 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004029/0.1379, allocations: 251.3 kB / 482.3 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.1379, allocations: 34.84 kB / 482.3 MB, free: 2.781 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.102e-06/0.1379, allocations: 3.938 kB / 482.3 MB, free: 2.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002705/0.1382, allocations: 109.5 kB / 482.4 MB, free: 2.664 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.418e-05/0.1382, allocations: 59.34 kB / 482.5 MB, free: 2.594 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.48e-05/0.1383, allocations: 93.84 kB / 482.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/0.1383, allocations: 25.7 kB / 482.6 MB, free: 2.461 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.546e-05/0.1384, allocations: 80.52 kB / 482.7 MB, free: 2.379 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.099e-05/0.1384, allocations: 27.56 kB / 482.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.449e-05/0.1385, allocations: 33.83 kB / 482.8 MB, free: 2.312 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1386, allocations: 310.8 kB / 483.1 MB, free: 2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.97e-05/0.1387, allocations: 27.92 kB / 483.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.827e-05/0.1387, allocations: 12 kB / 483.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.877e-05/0.1388, allocations: 56.78 kB / 483.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.1388, allocations: 0 / 483.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001316/0.139, allocations: 81.59 kB / 483.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.139, allocations: 7.938 kB / 483.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.139, allocations: 0 / 483.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.139, allocations: 8 kB / 483.2 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.1392, allocations: 19.92 kB / 483.3 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.1392, allocations: 3.984 kB / 483.3 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.111e-05/0.1392, allocations: 7.938 kB / 483.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/0.1392, allocations: 7.938 kB / 483.3 MB, free: 1.762 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 (10): * Single equations (assignments): 10 * 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 9.025e-05/0.1393, allocations: 109.8 kB / 483.4 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.565e-05/0.1393, allocations: 7.938 kB / 483.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001942/0.1395, allocations: 101.6 kB / 483.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1395, allocations: 384 / 483.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1396, allocations: 3.984 kB / 483.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1396, allocations: 0 / 483.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001633/0.1397, allocations: 177.6 kB / 483.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1397, allocations: 3.938 kB / 483.7 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.772e-05/0.1398, allocations: 15.98 kB / 483.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.223e-06/0.1398, allocations: 3.938 kB / 483.7 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.1398, allocations: 11.94 kB / 483.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1398, allocations: 0 / 483.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.1399, allocations: 0 / 483.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000161/0.14, allocations: 117.1 kB / 483.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.803e-05/0.1401, allocations: 88.89 kB / 483.9 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/0.1401, allocations: 7.938 kB / 483.9 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.587e-05/0.1401, allocations: 4 kB / 483.9 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.833e-05/0.1402, allocations: 0 / 483.9 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.1402, allocations: 7.984 kB / 483.9 MB, free: 1.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.548e-05/0.1402, allocations: 75.28 kB / 484 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1402, allocations: 4.094 kB / 484 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000203/0.1404, allocations: 16 kB / 484 MB, free: 0.918 MB / 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 (10): * Single equations (assignments): 10 * 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 Backend phase and start with SimCode phase: time 0.0005002/0.1409, allocations: 0.6475 MB / 484.7 MB, free: 248 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001557/0.1411, allocations: 63.92 kB / 484.7 MB, free: 184 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1411, allocations: 0 / 484.7 MB, free: 184 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.993e-05/0.1412, allocations: 36.3 kB / 484.8 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001389/0.1413, allocations: 11.88 kB / 484.8 MB, free: 144 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004505/0.1418, allocations: 178.4 kB / 485 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003187/0.1421, allocations: 0.6807 MB / 485.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.419e-05/0.1422, allocations: 15.94 kB / 485.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.77e-05/0.1422, allocations: 15.44 kB / 485.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1422, allocations: 0 / 485.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.1659, allocations: 1.522 MB / 487.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.898/8.064, allocations: 15.69 kB / 487.2 MB, free: 13.73 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1)