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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001941/0.001941, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001904/0.001904, allocations: 213.6 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 230.5 MB / 258.2 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2996/0.2996, allocations: 46.92 MB / 361.6 MB, free: 4.18 MB / 286.1 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "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.002275/0.002275, allocations: 79.86 kB / 0.497 GB, free: 7.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3878/0.3901, allocations: 66.08 MB / 0.5615 GB, free: 4.297 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.002016/0.3921, allocations: 0.4987 MB / 0.562 GB, free: 3.805 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002392/0.3945, allocations: 1.413 MB / 0.5634 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.035e-05/0.3945, allocations: 0 / 0.5634 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.015e-05/0.3946, allocations: 0 / 0.5634 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.594e-05/0.3946, allocations: 7.938 kB / 0.5634 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008064/0.3954, allocations: 219.5 kB / 0.5636 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.979e-05/0.3955, allocations: 4 kB / 0.5636 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.016e-05/0.3955, allocations: 0 / 0.5636 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.101e-05/0.3955, allocations: 4 kB / 0.5636 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.056e-05/0.3956, allocations: 3.984 kB / 0.5636 GB, free: 2.141 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.36e-05/0.3956, allocations: 0 / 0.5636 GB, free: 2.141 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005109/0.3961, allocations: 279.6 kB / 0.5639 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.483e-05/0.3961, allocations: 3.938 kB / 0.5639 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.14e-05/0.3962, allocations: 4 kB / 0.5639 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002623/0.3964, allocations: 149.6 kB / 0.564 GB, free: 1.715 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.3964, allocations: 0 / 0.564 GB, free: 1.715 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3964, allocations: 0 / 0.564 GB, free: 1.715 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.355e-05/0.3964, allocations: 0 / 0.564 GB, free: 1.715 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.0004046/0.3968, allocations: 258.3 kB / 0.5642 GB, free: 1.434 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.3969, allocations: 8.031 kB / 0.5643 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.77e-05/0.3969, allocations: 30.75 kB / 0.5643 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.914e-05/0.397, allocations: 12.83 kB / 0.5643 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.551e-05/0.397, allocations: 110.5 kB / 0.5644 GB, free: 1.242 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.3971, allocations: 4.375 kB / 0.5644 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.332e-05/0.3971, allocations: 4.375 kB / 0.5644 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001337/0.3972, allocations: 41.75 kB / 0.5644 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.3972, allocations: 0 / 0.5644 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.3972, allocations: 4 kB / 0.5645 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.3972, allocations: 3.984 kB / 0.5645 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.441e-05/0.3973, allocations: 4 kB / 0.5645 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004174/0.3977, allocations: 215.9 kB / 0.5647 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.051e-05/0.3978, allocations: 30.52 kB / 0.5647 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.1e-05/0.3978, allocations: 4.859 kB / 0.5647 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.166e-05/0.3978, allocations: 0 / 0.5647 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.3978, allocations: 34.62 kB / 0.5647 GB, free: 0.832 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.3978, allocations: 0 / 0.5647 GB, free: 0.832 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001682/0.398, allocations: 33.69 kB / 0.5648 GB, free: 0.793 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.3981, allocations: 55.34 kB / 0.5648 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.827e-05/0.3981, allocations: 102 kB / 0.5649 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.3982, allocations: 25.7 kB / 0.5649 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.563e-05/0.3982, allocations: 84.09 kB / 0.565 GB, free: 0.5 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.708e-06/0.3982, allocations: 11.94 kB / 0.565 GB, free: 500 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.423e-05/0.3983, allocations: 17.72 kB / 0.565 GB, free: 476 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.3984, allocations: 314.8 kB / 0.5653 GB, free: 152 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.321e-05/0.3984, allocations: 0 / 0.5653 GB, free: 152 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.843e-05/0.3985, allocations: 22.7 kB / 0.5654 GB, free: 120 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.09e-05/0.3985, allocations: 34.5 kB / 0.5654 GB, free: 76 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3985, allocations: 0 / 0.5654 GB, free: 76 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.793e-05/0.3986, allocations: 45.64 kB / 0.5654 GB, free: 24 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.3986, allocations: 4.094 kB / 0.5655 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.3986, allocations: 4 kB / 0.5655 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.3986, allocations: 7.984 kB / 0.5655 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.656e-05/0.3987, allocations: 8 kB / 0.5655 GB, free: 0 / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.76e-06/0.3987, allocations: 0 / 0.5655 GB, free: 0 / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.064e-05/0.3987, allocations: 4.047 kB / 0.5655 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.3987, allocations: 0 / 0.5655 GB, free: 15.99 MB / 414.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 9.586e-05/0.3988, allocations: 110.7 kB / 0.5656 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.409e-05/0.3989, allocations: 4 kB / 0.5656 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001278/0.399, allocations: 52.73 kB / 0.5656 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.399, allocations: 0 / 0.5656 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.399, allocations: 0 / 0.5656 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.399, allocations: 3.938 kB / 0.5656 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001613/0.3992, allocations: 128.7 kB / 0.5658 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.3992, allocations: 7.938 kB / 0.5658 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.12e-07/0.3992, allocations: 0 / 0.5658 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.3992, allocations: 0 / 0.5658 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.3992, allocations: 4.031 kB / 0.5658 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.3992, allocations: 0 / 0.5658 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3992, allocations: 4 kB / 0.5658 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001093/0.3993, allocations: 127.5 kB / 0.5659 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.045e-05/0.3993, allocations: 7.984 kB / 0.5659 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.087e-05/0.3993, allocations: 0 / 0.5659 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.14e-05/0.3994, allocations: 3.938 kB / 0.5659 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.461e-05/0.3994, allocations: 4 kB / 0.5659 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-06/0.3994, allocations: 8.031 kB / 0.5659 GB, free: 15.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.74e-05/0.3994, allocations: 75.28 kB / 0.566 GB, free: 15.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3994, allocations: 0 / 0.566 GB, free: 15.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002889/0.3997, allocations: 43.92 kB / 0.566 GB, free: 15.34 MB / 414.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.0005693/0.4003, allocations: 0.7047 MB / 0.5667 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.21e-05/0.4004, allocations: 11.94 kB / 0.5667 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4004, allocations: 0 / 0.5667 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.756e-05/0.4004, allocations: 29.7 kB / 0.5668 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002083/0.4006, allocations: 0 / 0.5668 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004159/0.401, allocations: 130.5 kB / 0.5669 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/0.4014, allocations: 0.6767 MB / 0.5675 GB, free: 13.69 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.681e-05/0.4014, allocations: 12.33 kB / 0.5676 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.799e-05/0.4014, allocations: 7.438 kB / 0.5676 GB, free: 13.67 MB / 414.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4014, allocations: 0 / 0.5676 GB, free: 13.67 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02386/0.4253, allocations: 1.861 MB / 0.5694 GB, free: 11.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.645/8.07, allocations: 3.938 kB / 0.5694 GB, free: 11.88 MB / 414.1 MB " [Timeout remaining time 652] (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.019992 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.017732799053192] Failed to read output from testmodel.py, exit status != 0: ['time', 'x', 'a', 'b'] 8.138079119846225 8.154232306 7.754612352 Calling exit ...