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.001326/0.001326, 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.001343/0.001343, 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.456/1.456, allocations: 227.4 MB / 247 MB, free: 10.46 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.2279/0.2279, allocations: 46.12 MB / 344.4 MB, free: 11.49 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.002278/0.002278, allocations: 79.86 kB / 480.9 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3695/0.3717, allocations: 62.45 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001673/0.3735, allocations: 0.5275 MB / 0.5311 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004219/0.3739, allocations: 154.1 kB / 0.5313 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.154e-05/0.3739, allocations: 1.125 kB / 0.5313 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.719e-05/0.374, allocations: 0 / 0.5313 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002569/0.3742, allocations: 37 kB / 0.5313 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.907e-06/0.3742, allocations: 3.938 kB / 0.5313 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.765e-05/0.3743, allocations: 29.36 kB / 0.5313 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.294e-05/0.3744, allocations: 5.812 kB / 0.5313 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.599e-05/0.3744, allocations: 15.59 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.803e-05/0.3745, allocations: 11.42 kB / 0.5314 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.236e-05/0.3745, allocations: 2.25 kB / 0.5314 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001219/0.3746, allocations: 48.42 kB / 0.5314 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.11e-05/0.3746, allocations: 3.984 kB / 0.5314 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.258e-05/0.3747, allocations: 13.55 kB / 0.5314 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001164/0.3748, allocations: 42.06 kB / 0.5315 GB, free: 12.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.3748, allocations: 4 kB / 0.5315 GB, free: 12.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3748, allocations: 3.938 kB / 0.5315 GB, free: 12.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.3748, allocations: 1.219 kB / 0.5315 GB, free: 12.74 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.0003805/0.3752, allocations: 347.4 kB / 0.5318 GB, free: 12.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.3752, allocations: 9.75 kB / 0.5318 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.928e-05/0.3753, allocations: 31.91 kB / 0.5318 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.474e-05/0.3753, allocations: 3.188 kB / 0.5318 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000135/0.3755, allocations: 169.5 kB / 0.532 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.3755, allocations: 5.609 kB / 0.532 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.032e-05/0.3755, allocations: 8.031 kB / 0.532 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001347/0.3756, allocations: 60.36 kB / 0.5321 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.3757, allocations: 3.938 kB / 0.5321 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.3757, allocations: 5.312 kB / 0.5321 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.3757, allocations: 1.25 kB / 0.5321 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.3758, allocations: 48.95 kB / 0.5321 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002053/0.376, allocations: 179.2 kB / 0.5323 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001591/0.3762, allocations: 83.48 kB / 0.5324 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.033e-05/0.3762, allocations: 31.67 kB / 0.5324 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003671/0.3766, allocations: 252.9 kB / 0.5327 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.3766, allocations: 32.41 kB / 0.5327 GB, free: 11.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.3767, allocations: 0 / 0.5327 GB, free: 11.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002576/0.3769, allocations: 106.6 kB / 0.5328 GB, free: 11.35 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.314e-05/0.377, allocations: 52.84 kB / 0.5328 GB, free: 11.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.46e-05/0.3771, allocations: 99.52 kB / 0.5329 GB, free: 11.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.3771, allocations: 25.7 kB / 0.533 GB, free: 11.15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.386e-05/0.3771, allocations: 81.11 kB / 0.533 GB, free: 11.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.484e-05/0.3772, allocations: 35.88 kB / 0.5331 GB, free: 11.04 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.223e-05/0.3772, allocations: 31.61 kB / 0.5331 GB, free: 11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.3774, allocations: 312.3 kB / 0.5334 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.608e-05/0.3774, allocations: 18.23 kB / 0.5334 GB, free: 10.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.13e-05/0.3775, allocations: 18.34 kB / 0.5334 GB, free: 10.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.946e-05/0.3775, allocations: 58.62 kB / 0.5335 GB, free: 10.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.3776, allocations: 0 / 0.5335 GB, free: 10.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001287/0.3777, allocations: 92.08 kB / 0.5336 GB, free: 10.58 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.3777, allocations: 7.469 kB / 0.5336 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.3777, allocations: 1.906 kB / 0.5336 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.3777, allocations: 0 / 0.5336 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.611e-05/0.3778, allocations: 12.66 kB / 0.5336 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.3779, allocations: 5.766 kB / 0.5336 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.29e-05/0.3779, allocations: 0 / 0.5336 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.3779, allocations: 7.594 kB / 0.5336 GB, free: 10.57 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.161e-05/0.378, allocations: 115.7 kB / 0.5337 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.649e-05/0.378, allocations: 9.641 kB / 0.5337 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001826/0.3782, allocations: 99.98 kB / 0.5338 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.3782, allocations: 1.344 kB / 0.5338 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3782, allocations: 96 / 0.5338 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3782, allocations: 5.25 kB / 0.5338 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001549/0.3784, allocations: 179.7 kB / 0.534 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.3784, allocations: 0 / 0.534 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.174e-05/0.3785, allocations: 17.69 kB / 0.534 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.117e-06/0.3785, allocations: 10.05 kB / 0.534 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.709e-06/0.3785, allocations: 4 kB / 0.534 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.3785, allocations: 0 / 0.534 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3785, allocations: 2.312 kB / 0.534 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001419/0.3787, allocations: 106.6 kB / 0.5341 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.302e-05/0.3787, allocations: 82.72 kB / 0.5342 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.3787, allocations: 9.719 kB / 0.5342 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.292e-05/0.3788, allocations: 4 kB / 0.5342 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.552e-05/0.3788, allocations: 2.969 kB / 0.5342 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/0.3788, allocations: 2.812 kB / 0.5342 GB, free: 9.934 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.799e-05/0.3788, allocations: 77.44 kB / 0.5343 GB, free: 9.859 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3789, allocations: 0 / 0.5343 GB, free: 9.859 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002003/0.3791, allocations: 18.98 kB / 0.5343 GB, free: 9.852 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.0005029/0.3796, allocations: 0.6582 MB / 0.535 GB, free: 9.219 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001318/0.3797, allocations: 53.11 kB / 0.535 GB, free: 9.199 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.3797, allocations: 1.375 kB / 0.535 GB, free: 9.199 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.661e-05/0.3798, allocations: 43.23 kB / 0.5351 GB, free: 9.176 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001429/0.3799, allocations: 9.312 kB / 0.5351 GB, free: 9.168 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004461/0.3804, allocations: 163.8 kB / 0.5352 GB, free: 9.004 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/0.3807, allocations: 0.6887 MB / 0.5359 GB, free: 8.297 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.07e-05/0.3808, allocations: 15.88 kB / 0.5359 GB, free: 8.285 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.616e-05/0.3808, allocations: 15.56 kB / 0.5359 GB, free: 8.273 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3808, allocations: 0 / 0.5359 GB, free: 8.273 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02423/0.405, allocations: 1.569 MB / 0.5375 GB, free: 7.422 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.242/8.647, allocations: 14.11 kB / 0.5375 GB, free: 7.418 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegFunctions_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1)