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.001807/0.001806, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001693/0.001693, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 247 MB, free: 10.41 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.224/0.224, allocations: 46.12 MB / 344.3 MB, free: 11.47 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.002428/0.002428, allocations: 75.88 kB / 480.9 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.33, allocations: 62.46 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001526/0.3316, allocations: 490.1 kB / 0.5311 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.3335, allocations: 1.412 MB / 0.5324 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.558e-05/0.3335, allocations: 0 / 0.5324 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.207e-05/0.3335, allocations: 0 / 0.5324 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.764e-05/0.3336, allocations: 0 / 0.5324 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006569/0.3342, allocations: 225.2 kB / 0.5327 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.353e-05/0.3343, allocations: 7.578 kB / 0.5327 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.888e-05/0.3343, allocations: 1.781 kB / 0.5327 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.696e-05/0.3344, allocations: 5.812 kB / 0.5327 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.551e-05/0.3344, allocations: 5.797 kB / 0.5327 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.227e-05/0.3344, allocations: 2.031 kB / 0.5327 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004432/0.3349, allocations: 282.6 kB / 0.5329 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.417e-05/0.3349, allocations: 5.359 kB / 0.5329 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.145e-05/0.3349, allocations: 9.312 kB / 0.533 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002248/0.3352, allocations: 140.9 kB / 0.5331 GB, free: 11.46 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3352, allocations: 0 / 0.5331 GB, free: 11.46 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3352, allocations: 0 / 0.5331 GB, free: 11.46 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.3352, allocations: 3.938 kB / 0.5331 GB, free: 11.46 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003843/0.3356, allocations: 340.7 kB / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.3356, allocations: 9.625 kB / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.341e-05/0.3357, allocations: 34.75 kB / 0.5335 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.714e-05/0.3357, allocations: 6.297 kB / 0.5335 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.3358, allocations: 168.3 kB / 0.5336 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.284e-06/0.3358, allocations: 1.75 kB / 0.5336 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.236e-06/0.3359, allocations: 384 / 0.5336 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.934e-05/0.3359, allocations: 41.88 kB / 0.5337 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.336, allocations: 0 / 0.5337 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.336, allocations: 0 / 0.5337 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.336, allocations: 3.938 kB / 0.5337 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.014e-05/0.336, allocations: 6.75 kB / 0.5337 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001775/0.3362, allocations: 152.4 kB / 0.5338 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.892e-05/0.3362, allocations: 15.95 kB / 0.5338 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.636e-05/0.3363, allocations: 6.234 kB / 0.5338 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.45e-06/0.3363, allocations: 1.375 kB / 0.5339 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.3363, allocations: 43.81 kB / 0.5339 GB, free: 10.51 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.3363, allocations: 0 / 0.5339 GB, free: 10.51 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001228/0.3364, allocations: 36.58 kB / 0.5339 GB, free: 10.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.3365, allocations: 51.41 kB / 0.534 GB, free: 10.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.436e-05/0.3366, allocations: 96.59 kB / 0.5341 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.3366, allocations: 25.7 kB / 0.5341 GB, free: 10.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.145e-05/0.3366, allocations: 85.52 kB / 0.5342 GB, free: 10.2 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.061e-05/0.3367, allocations: 3.953 kB / 0.5342 GB, free: 10.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.124e-05/0.3367, allocations: 12.47 kB / 0.5342 GB, free: 10.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.3368, allocations: 315.1 kB / 0.5345 GB, free: 9.859 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.02e-05/0.3369, allocations: 1.375 kB / 0.5345 GB, free: 9.859 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.334e-06/0.3369, allocations: 2.75 kB / 0.5345 GB, free: 9.859 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.839e-05/0.3369, allocations: 15.53 kB / 0.5345 GB, free: 9.844 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3369, allocations: 0 / 0.5345 GB, free: 9.844 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.985e-05/0.337, allocations: 40.52 kB / 0.5345 GB, free: 9.805 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.337, allocations: 5.5 kB / 0.5346 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.337, allocations: 0 / 0.5346 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.337, allocations: 4.094 kB / 0.5346 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.327e-05/0.3371, allocations: 2.75 kB / 0.5346 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.3371, allocations: 0 / 0.5346 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.28e-05/0.3371, allocations: 1.375 kB / 0.5346 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.3371, allocations: 0 / 0.5346 GB, free: 9.801 MB / 398.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.573e-05/0.3372, allocations: 111.2 kB / 0.5347 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.039e-05/0.3372, allocations: 5.312 kB / 0.5347 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001127/0.3373, allocations: 53.02 kB / 0.5347 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.3373, allocations: 3.938 kB / 0.5347 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3374, allocations: 5.359 kB / 0.5347 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.3374, allocations: 0 / 0.5347 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001065/0.3375, allocations: 144.4 kB / 0.5349 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-06/0.3375, allocations: 0 / 0.5349 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.335e-06/0.3375, allocations: 9.25 kB / 0.5349 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.3375, allocations: 0 / 0.5349 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.3375, allocations: 5.359 kB / 0.5349 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.3375, allocations: 4.031 kB / 0.5349 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3375, allocations: 0 / 0.5349 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.525e-05/0.3376, allocations: 61.33 kB / 0.5349 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.531e-05/0.3377, allocations: 82.42 kB / 0.535 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.002e-05/0.3377, allocations: 0 / 0.535 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.108e-05/0.3377, allocations: 6.734 kB / 0.535 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.243e-05/0.3378, allocations: 0 / 0.535 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.509e-06/0.3378, allocations: 5.406 kB / 0.535 GB, free: 9.246 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.826e-05/0.3378, allocations: 76.66 kB / 0.5351 GB, free: 9.172 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3378, allocations: 1.375 kB / 0.5351 GB, free: 9.172 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002362/0.3381, allocations: 42.31 kB / 0.5352 GB, free: 9.164 MB / 398.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.0005095/0.3386, allocations: 0.6356 MB / 0.5358 GB, free: 8.547 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.02e-05/0.3386, allocations: 8.562 kB / 0.5358 GB, free: 8.543 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3387, allocations: 0 / 0.5358 GB, free: 8.543 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.712e-05/0.3387, allocations: 32.86 kB / 0.5358 GB, free: 8.508 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001344/0.3388, allocations: 2.312 kB / 0.5358 GB, free: 8.508 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003254/0.3392, allocations: 123.9 kB / 0.5359 GB, free: 8.363 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002754/0.3395, allocations: 0.674 MB / 0.5366 GB, free: 7.664 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.948e-05/0.3395, allocations: 9.516 kB / 0.5366 GB, free: 7.656 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.324e-05/0.3395, allocations: 8.875 kB / 0.5366 GB, free: 7.648 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3395, allocations: 0 / 0.5366 GB, free: 7.648 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02254/0.3621, allocations: 1.869 MB / 0.5384 GB, free: 6.617 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.725/8.087, allocations: 20.17 kB / 0.5385 GB, free: 6.605 MB / 398.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)