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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001967/0.001966, allocations: 122.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.002188/0.002188, allocations: 201.2 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.454/1.454, 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.2192/0.2192, allocations: 46.13 MB / 344.4 MB, free: 11.43 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.002318/0.002318, allocations: 75.88 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3343, allocations: 62.45 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001441/0.3357, allocations: 0.4931 MB / 0.5311 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001957/0.3377, allocations: 1.403 MB / 0.5324 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.429e-05/0.3378, allocations: 1.938 kB / 0.5324 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.612e-05/0.3378, allocations: 0 / 0.5324 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.389e-05/0.3378, allocations: 0 / 0.5324 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007261/0.3386, allocations: 225 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.974e-05/0.3386, allocations: 7.516 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.138e-05/0.3387, allocations: 5.531 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.152e-05/0.3387, allocations: 10.42 kB / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.847e-05/0.3388, allocations: 2.406 kB / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.23e-05/0.3388, allocations: 0 / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004665/0.3392, allocations: 279.8 kB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.266e-05/0.3393, allocations: 1.281 kB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.402e-05/0.3393, allocations: 13.27 kB / 0.533 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002317/0.3395, allocations: 140.5 kB / 0.5331 GB, free: 11.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3395, allocations: 0 / 0.5331 GB, free: 11.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3395, allocations: 0 / 0.5331 GB, free: 11.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.199e-06/0.3396, allocations: 5.125 kB / 0.5331 GB, free: 11.43 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.0003891/0.34, allocations: 335.8 kB / 0.5334 GB, free: 11.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.34, allocations: 13.38 kB / 0.5334 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.536e-05/0.34, allocations: 32.12 kB / 0.5335 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.68e-05/0.3401, allocations: 4.891 kB / 0.5335 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.3402, allocations: 165.8 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.3402, allocations: 384 / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.486e-06/0.3402, allocations: 1.75 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001159/0.3404, allocations: 47.25 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.3404, allocations: 4 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.3404, allocations: 1.375 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.3404, allocations: 3.938 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.43e-05/0.3404, allocations: 13.48 kB / 0.5337 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003732/0.3408, allocations: 239.7 kB / 0.5339 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.287e-05/0.3409, allocations: 21.36 kB / 0.5339 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.039e-05/0.3409, allocations: 10.17 kB / 0.534 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.787e-06/0.3409, allocations: 4 kB / 0.534 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.3409, allocations: 31.94 kB / 0.534 GB, free: 10.4 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.3409, allocations: 0 / 0.534 GB, free: 10.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001384/0.3411, allocations: 35.2 kB / 0.534 GB, free: 10.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.217e-05/0.3411, allocations: 52.78 kB / 0.5341 GB, free: 10.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.122e-05/0.3412, allocations: 96.59 kB / 0.5342 GB, free: 10.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.3413, allocations: 25.95 kB / 0.5342 GB, free: 10.17 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.19e-05/0.3413, allocations: 93.47 kB / 0.5343 GB, free: 10.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.893e-06/0.3413, allocations: 3.953 kB / 0.5343 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.966e-05/0.3414, allocations: 13.84 kB / 0.5343 GB, free: 10.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3415, allocations: 316.2 kB / 0.5346 GB, free: 9.738 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.81e-05/0.3415, allocations: 13.3 kB / 0.5346 GB, free: 9.727 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.454e-05/0.3416, allocations: 17.33 kB / 0.5346 GB, free: 9.703 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.089e-05/0.3416, allocations: 29.45 kB / 0.5347 GB, free: 9.672 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.582e-06/0.3416, allocations: 0 / 0.5347 GB, free: 9.672 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.105e-05/0.3417, allocations: 46 kB / 0.5347 GB, free: 9.633 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.3417, allocations: 5.5 kB / 0.5347 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.3417, allocations: 1.375 kB / 0.5347 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.3417, allocations: 1.375 kB / 0.5347 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.656e-05/0.3418, allocations: 12.16 kB / 0.5347 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.3418, allocations: 1.375 kB / 0.5347 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.888e-05/0.3418, allocations: 5.375 kB / 0.5347 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.3418, allocations: 1.375 kB / 0.5347 GB, free: 9.621 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 8.792e-05/0.3419, allocations: 116.5 kB / 0.5348 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.159e-05/0.342, allocations: 1.375 kB / 0.5348 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.3421, allocations: 47.7 kB / 0.5349 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.3421, allocations: 1.375 kB / 0.5349 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.3421, allocations: 3.938 kB / 0.5349 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.3421, allocations: 3.938 kB / 0.5349 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001662/0.3423, allocations: 152.4 kB / 0.535 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.3423, allocations: 1.375 kB / 0.535 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.3423, allocations: 3.938 kB / 0.535 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3423, allocations: 0 / 0.535 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.3423, allocations: 1.375 kB / 0.535 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3423, allocations: 0 / 0.535 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3423, allocations: 0 / 0.535 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001104/0.3424, allocations: 139.8 kB / 0.5352 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.274e-05/0.3425, allocations: 82.56 kB / 0.5353 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.858e-06/0.3425, allocations: 0 / 0.5353 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.437e-05/0.3426, allocations: 1.375 kB / 0.5353 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.19e-05/0.3426, allocations: 1.375 kB / 0.5353 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-06/0.3426, allocations: 3.984 kB / 0.5353 GB, free: 9.004 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.045e-05/0.3427, allocations: 82.06 kB / 0.5353 GB, free: 8.926 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3427, allocations: 0 / 0.5353 GB, free: 8.926 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.3429, allocations: 43.69 kB / 0.5354 GB, free: 8.918 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.0005774/0.3435, allocations: 0.7073 MB / 0.5361 GB, free: 8.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.268e-05/0.3436, allocations: 18.92 kB / 0.5361 GB, free: 8.219 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3436, allocations: 1.375 kB / 0.5361 GB, free: 8.219 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.731e-05/0.3437, allocations: 32.45 kB / 0.5361 GB, free: 8.184 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001978/0.3439, allocations: 5.312 kB / 0.5361 GB, free: 8.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003742/0.3443, allocations: 124.5 kB / 0.5362 GB, free: 8.035 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.3446, allocations: 0.6703 MB / 0.5369 GB, free: 7.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.26e-05/0.3446, allocations: 1.625 kB / 0.5369 GB, free: 7.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.626e-05/0.3446, allocations: 16.8 kB / 0.5369 GB, free: 7.324 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3447, allocations: 1.375 kB / 0.5369 GB, free: 7.324 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02298/0.3676, allocations: 1.87 MB / 0.5387 GB, free: 6.297 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.858/8.225, allocations: 6.203 kB / 0.5387 GB, free: 6.293 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1)