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.001682/0.001682, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001955/0.001955, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.516/1.516, allocations: 227.4 MB / 247 MB, free: 10.44 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.2363/0.2363, allocations: 46.12 MB / 344.3 MB, free: 11.48 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.002246/0.002246, allocations: 75.88 kB / 480.9 MB, free: 4.543 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3731/0.3753, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001579/0.377, allocations: 0.5204 MB / 0.5311 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004312/0.3774, allocations: 158.3 kB / 0.5313 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.934e-05/0.3775, allocations: 1.625 kB / 0.5313 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.465e-05/0.3775, allocations: 0 / 0.5313 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002823/0.3778, allocations: 40.73 kB / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.669e-06/0.3778, allocations: 3.938 kB / 0.5313 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.442e-05/0.3779, allocations: 20.8 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.886e-05/0.3779, allocations: 6.062 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.267e-05/0.3779, allocations: 11.23 kB / 0.5313 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.094e-05/0.378, allocations: 20.3 kB / 0.5314 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.246e-05/0.378, allocations: 1.094 kB / 0.5314 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001387/0.3782, allocations: 52.72 kB / 0.5314 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.086e-05/0.3782, allocations: 1.156 kB / 0.5314 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.192e-05/0.3782, allocations: 12.94 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001236/0.3784, allocations: 45.61 kB / 0.5315 GB, free: 12.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.916e-06/0.3784, allocations: 1.25 kB / 0.5315 GB, free: 12.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3784, allocations: 3.938 kB / 0.5315 GB, free: 12.72 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.3784, allocations: 0 / 0.5315 GB, free: 12.72 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003893/0.3788, allocations: 343.2 kB / 0.5318 GB, free: 12.35 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.3788, allocations: 9.781 kB / 0.5318 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.483e-05/0.3789, allocations: 40.83 kB / 0.5318 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.854e-05/0.3789, allocations: 2.5 kB / 0.5318 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.3791, allocations: 165.5 kB / 0.532 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/0.3791, allocations: 11.03 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.462e-05/0.3791, allocations: 2.656 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001469/0.3793, allocations: 56.7 kB / 0.5321 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.3793, allocations: 7.875 kB / 0.5321 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.3793, allocations: 5.25 kB / 0.5321 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.3793, allocations: 1.562 kB / 0.5321 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00011/0.3794, allocations: 50.14 kB / 0.5321 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002226/0.3796, allocations: 179.2 kB / 0.5323 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001509/0.3798, allocations: 78.67 kB / 0.5324 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.043e-05/0.3799, allocations: 38.97 kB / 0.5324 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000386/0.3803, allocations: 249.4 kB / 0.5327 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.785e-05/0.3803, allocations: 35.98 kB / 0.5327 GB, free: 11.39 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.313e-06/0.3803, allocations: 0 / 0.5327 GB, free: 11.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002545/0.3806, allocations: 103 kB / 0.5328 GB, free: 11.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.3807, allocations: 57.53 kB / 0.5328 GB, free: 11.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.406e-05/0.3808, allocations: 97.84 kB / 0.5329 GB, free: 11.16 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.3808, allocations: 27.3 kB / 0.533 GB, free: 11.13 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.735e-05/0.3808, allocations: 80.14 kB / 0.533 GB, free: 11.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.637e-05/0.3809, allocations: 35.27 kB / 0.5331 GB, free: 11.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-05/0.3809, allocations: 24.48 kB / 0.5331 GB, free: 10.99 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.3811, allocations: 316.3 kB / 0.5334 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.828e-05/0.3811, allocations: 17.33 kB / 0.5334 GB, free: 10.67 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.243e-05/0.3812, allocations: 22.98 kB / 0.5334 GB, free: 10.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.456e-05/0.3813, allocations: 54.05 kB / 0.5335 GB, free: 10.62 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.3813, allocations: 0 / 0.5335 GB, free: 10.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001262/0.3814, allocations: 92.14 kB / 0.5336 GB, free: 10.56 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.3814, allocations: 11.56 kB / 0.5336 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.3814, allocations: 4 kB / 0.5336 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.3815, allocations: 1.25 kB / 0.5336 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.842e-05/0.3816, allocations: 18.3 kB / 0.5336 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.3816, allocations: 0 / 0.5336 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.245e-05/0.3816, allocations: 0 / 0.5336 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-06/0.3816, allocations: 7.719 kB / 0.5336 GB, free: 10.55 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 (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.901e-05/0.3817, allocations: 112.2 kB / 0.5337 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.505e-05/0.3817, allocations: 10.11 kB / 0.5337 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001978/0.3819, allocations: 103 kB / 0.5338 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.382, allocations: 1.844 kB / 0.5338 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.382, allocations: 3.938 kB / 0.5338 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.382, allocations: 0 / 0.5338 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001613/0.3821, allocations: 173.3 kB / 0.534 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.3822, allocations: 4 kB / 0.534 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.827e-05/0.3822, allocations: 20.05 kB / 0.534 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.3822, allocations: 7.062 kB / 0.534 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.3822, allocations: 0 / 0.534 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3823, allocations: 0 / 0.534 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3823, allocations: 0 / 0.534 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001658/0.3824, allocations: 116.8 kB / 0.5341 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.267e-05/0.3825, allocations: 78.48 kB / 0.5342 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.3825, allocations: 5.312 kB / 0.5342 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.405e-05/0.3825, allocations: 8 kB / 0.5342 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.304e-05/0.3826, allocations: 8.109 kB / 0.5342 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-06/0.3826, allocations: 1.375 kB / 0.5342 GB, free: 9.914 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.808e-05/0.3826, allocations: 76.66 kB / 0.5343 GB, free: 9.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3826, allocations: 0 / 0.5343 GB, free: 9.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001966/0.3828, allocations: 16.38 kB / 0.5343 GB, free: 9.836 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 (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.0004864/0.3833, allocations: 0.6582 MB / 0.535 GB, free: 9.203 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001423/0.3835, allocations: 57.09 kB / 0.535 GB, free: 9.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.3835, allocations: 1.562 kB / 0.535 GB, free: 9.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.743e-05/0.3835, allocations: 39.06 kB / 0.5351 GB, free: 9.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001411/0.3837, allocations: 5.359 kB / 0.5351 GB, free: 9.156 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004398/0.3841, allocations: 171.6 kB / 0.5352 GB, free: 8.984 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002909/0.3844, allocations: 0.6896 MB / 0.5359 GB, free: 8.277 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.7e-05/0.3845, allocations: 11.59 kB / 0.5359 GB, free: 8.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.39e-05/0.3845, allocations: 14.38 kB / 0.5359 GB, free: 8.258 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3845, allocations: 1.438 kB / 0.5359 GB, free: 8.258 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0235/0.408, allocations: 1.564 MB / 0.5375 GB, free: 7.414 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.803/8.211, allocations: 10.12 kB / 0.5375 GB, free: 7.406 MB / 398.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)