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.001701/0.001701, allocations: 109.2 kB / 19.8 MB, free: 2.516 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.002068/0.002068, allocations: 220.1 kB / 23 MB, free: 5.609 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.629/1.629, allocations: 230.2 MB / 256.2 MB, free: 8.688 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.2216/0.2216, allocations: 46.89 MB / 359.4 MB, free: 4.93 MB / 286.1 MB " [Timeout remaining time 180] 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.002472/0.002472, allocations: 87.86 kB / 0.4941 GB, free: 9.027 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3113, allocations: 65.98 MB / 0.5586 GB, free: 5.156 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001633/0.3129, allocations: 498.7 kB / 0.559 GB, free: 4.672 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001996/0.3149, allocations: 1.416 MB / 0.5604 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.275e-05/0.3149, allocations: 0 / 0.5604 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.686e-05/0.3149, allocations: 0 / 0.5604 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.425e-05/0.315, allocations: 3.938 kB / 0.5604 GB, free: 3.23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007814/0.3158, allocations: 223.6 kB / 0.5606 GB, free: 3.016 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.375e-05/0.3158, allocations: 8 kB / 0.5606 GB, free: 3.008 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.762e-05/0.3159, allocations: 3.984 kB / 0.5606 GB, free: 3.004 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.148e-05/0.3159, allocations: 4 kB / 0.5606 GB, free: 3 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.416e-05/0.3159, allocations: 7.984 kB / 0.5607 GB, free: 2.992 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.25e-05/0.316, allocations: 0 / 0.5607 GB, free: 2.992 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004995/0.3165, allocations: 287.6 kB / 0.5609 GB, free: 2.711 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.451e-05/0.3165, allocations: 3.938 kB / 0.5609 GB, free: 2.707 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.069e-05/0.3165, allocations: 3.984 kB / 0.5609 GB, free: 2.703 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002594/0.3167, allocations: 149.5 kB / 0.5611 GB, free: 2.559 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3168, allocations: 0 / 0.5611 GB, free: 2.559 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3168, allocations: 3.938 kB / 0.5611 GB, free: 2.555 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.3168, allocations: 0 / 0.5611 GB, free: 2.555 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.0004388/0.3172, allocations: 335.4 kB / 0.5614 GB, free: 2.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.3172, allocations: 8.031 kB / 0.5614 GB, free: 2.172 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.791e-05/0.3173, allocations: 34.75 kB / 0.5614 GB, free: 2.129 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.519e-05/0.3173, allocations: 8.891 kB / 0.5615 GB, free: 2.121 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.3175, allocations: 164.3 kB / 0.5616 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.3175, allocations: 8.297 kB / 0.5616 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.426e-06/0.3175, allocations: 384 / 0.5616 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001158/0.3176, allocations: 41.83 kB / 0.5617 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.3176, allocations: 0 / 0.5617 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-06/0.3176, allocations: 0 / 0.5617 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.3176, allocations: 4 kB / 0.5617 GB, free: 1.863 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.622e-05/0.3177, allocations: 7.984 kB / 0.5617 GB, free: 1.855 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004263/0.3181, allocations: 244.8 kB / 0.5619 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.034e-05/0.3181, allocations: 26.55 kB / 0.5619 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.721e-05/0.3182, allocations: 4.859 kB / 0.5619 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.117e-05/0.3182, allocations: 0 / 0.5619 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.3182, allocations: 34.56 kB / 0.562 GB, free: 1.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.3182, allocations: 0 / 0.562 GB, free: 1.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001687/0.3184, allocations: 33.77 kB / 0.562 GB, free: 1.441 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.96e-05/0.3184, allocations: 59.34 kB / 0.5621 GB, free: 1.371 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.9e-05/0.3185, allocations: 97.84 kB / 0.5621 GB, free: 1.266 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.3185, allocations: 25.7 kB / 0.5622 GB, free: 1.234 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.355e-05/0.3186, allocations: 84.09 kB / 0.5623 GB, free: 1.148 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.366e-06/0.3186, allocations: 4.203 kB / 0.5623 GB, free: 1.145 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.537e-05/0.3186, allocations: 21.72 kB / 0.5623 GB, free: 1.117 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.3188, allocations: 314.8 kB / 0.5626 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.567e-05/0.3188, allocations: 7.984 kB / 0.5626 GB, free: 0.793 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.201e-05/0.3188, allocations: 22.58 kB / 0.5626 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.279e-05/0.3189, allocations: 26.52 kB / 0.5626 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3189, allocations: 0 / 0.5626 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.807e-05/0.319, allocations: 49.62 kB / 0.5627 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.319, allocations: 8 kB / 0.5627 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.319, allocations: 0 / 0.5627 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.319, allocations: 0 / 0.5627 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.695e-05/0.3191, allocations: 8 kB / 0.5627 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.3191, allocations: 0 / 0.5627 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.652e-05/0.3191, allocations: 0 / 0.5627 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.3191, allocations: 8.094 kB / 0.5627 GB, free: 0.6484 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 9.738e-05/0.3192, allocations: 117.8 kB / 0.5628 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.196e-05/0.3193, allocations: 0 / 0.5628 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001263/0.3194, allocations: 52.78 kB / 0.5629 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.3194, allocations: 3.938 kB / 0.5629 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.3194, allocations: 4 kB / 0.5629 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.3194, allocations: 4.031 kB / 0.5629 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/0.3196, allocations: 153.6 kB / 0.563 GB, free: 264 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.3196, allocations: 0 / 0.563 GB, free: 264 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.825e-06/0.3196, allocations: 4 kB / 0.563 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.3196, allocations: 0 / 0.563 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.74e-06/0.3196, allocations: 0 / 0.563 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3196, allocations: 0 / 0.563 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.3196, allocations: 0 / 0.563 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001069/0.3197, allocations: 135.5 kB / 0.5632 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.152e-05/0.3197, allocations: 81.11 kB / 0.5632 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.338e-06/0.3197, allocations: 0 / 0.5632 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.338e-05/0.3198, allocations: 4 kB / 0.5632 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.012e-05/0.3198, allocations: 3.938 kB / 0.5632 GB, free: 0 / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.3198, allocations: 0 / 0.5632 GB, free: 0 / 398.1 MB Notification: Performance of sorting global known variables: time 6.258e-05/0.3199, allocations: 83.33 kB / 0.5633 GB, free: 15.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3199, allocations: 0 / 0.5633 GB, free: 15.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000273/0.3202, allocations: 39.94 kB / 0.5634 GB, free: 15.88 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.0005931/0.3207, allocations: 0.7085 MB / 0.5641 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 8.341e-05/0.3208, allocations: 15.92 kB / 0.5641 GB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3208, allocations: 0 / 0.5641 GB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.682e-05/0.3209, allocations: 29.92 kB / 0.5641 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002003/0.3211, allocations: 6.25 kB / 0.5641 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004027/0.3215, allocations: 142.5 kB / 0.5642 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.3218, allocations: 0.669 MB / 0.5649 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.187e-05/0.3218, allocations: 0 / 0.5649 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.054e-05/0.3219, allocations: 11.44 kB / 0.5649 GB, free: 14.2 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3219, allocations: 0 / 0.5649 GB, free: 14.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02403/0.3459, allocations: 1.861 MB / 0.5667 GB, free: 12.4 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.028/8.374, allocations: 9.547 kB / 0.5667 GB, free: 12.39 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.250694018002832] Failed to read output from testmodel.py, exit status != 0: ['time', 'x', 'a', 'b'] 8.440886639989913 8.465013285 8.143644887 Calling exit ...