Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.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.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001656/0.001656, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002103/0.002104, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.52/1.52, allocations: 227.4 MB / 247 MB, free: 10.39 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.27/0.27, allocations: 46.11 MB / 344.3 MB, free: 11.44 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.002287/0.002287, allocations: 88.14 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3845/0.3868, allocations: 62.43 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.01586/0.4027, allocations: 12.69 MB / 0.543 GB, free: 3.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008867/0.4116, allocations: 5.489 MB / 0.5483 GB, free: 14.76 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006859/0.4124, allocations: 18.22 kB / 0.5484 GB, free: 14.75 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007649/0.4132, allocations: 203.2 kB / 0.5486 GB, free: 14.58 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002146/0.4154, allocations: 0.7091 MB / 0.5492 GB, free: 14.04 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00439/0.4198, allocations: 1.558 MB / 0.5508 GB, free: 13.01 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001957/0.4217, allocations: 1.232 MB / 0.552 GB, free: 11.8 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005512/0.4223, allocations: 325.2 kB / 0.5523 GB, free: 11.48 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008925/0.4232, allocations: 0.4983 MB / 0.5528 GB, free: 10.98 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007134/0.4239, allocations: 466.3 kB / 0.5532 GB, free: 10.52 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001077/0.424, allocations: 40 kB / 0.5532 GB, free: 10.48 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002384/0.4264, allocations: 1.096 MB / 0.5543 GB, free: 9.383 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002182/0.4267, allocations: 159.6 kB / 0.5545 GB, free: 9.227 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003469/0.427, allocations: 274.7 kB / 0.5547 GB, free: 8.957 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002397/0.4294, allocations: 1.355 MB / 0.5561 GB, free: 7.598 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.4294, allocations: 4 kB / 0.5561 GB, free: 7.594 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4294, allocations: 0 / 0.5561 GB, free: 7.594 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.4295, allocations: 0 / 0.5561 GB, free: 7.594 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00195/0.4314, allocations: 0.9776 MB / 0.557 GB, free: 6.555 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.4315, allocations: 12.03 kB / 0.557 GB, free: 6.543 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001/0.4316, allocations: 66.72 kB / 0.5571 GB, free: 6.469 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002534/0.4318, allocations: 64.59 kB / 0.5572 GB, free: 6.406 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007097/0.4326, allocations: 465.7 kB / 0.5576 GB, free: 5.914 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.548e-05/0.4326, allocations: 24.55 kB / 0.5576 GB, free: 5.891 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.277e-05/0.4327, allocations: 31.98 kB / 0.5576 GB, free: 5.859 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008591/0.4335, allocations: 0.5262 MB / 0.5582 GB, free: 5.297 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.4335, allocations: 4 kB / 0.5582 GB, free: 5.293 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.746e-05/0.4336, allocations: 15.98 kB / 0.5582 GB, free: 5.277 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-05/0.4337, allocations: 36.53 kB / 0.5582 GB, free: 5.242 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00074/0.4344, allocations: 458 kB / 0.5587 GB, free: 4.797 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003379/0.4378, allocations: 2.25 MB / 0.5609 GB, free: 2.398 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000439/0.4382, allocations: 242.6 kB / 0.5611 GB, free: 2.152 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002205/0.4385, allocations: 132.8 kB / 0.5612 GB, free: 2.02 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001214/0.4397, allocations: 1.021 MB / 0.5622 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003424/0.4401, allocations: 220.4 kB / 0.5624 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of pre-optimization done (n=18): time 1.513e-06/0.4401, allocations: 0 / 0.5624 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007069/0.4408, allocations: 385 kB / 0.5628 GB, free: 252 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001671/0.441, allocations: 243.3 kB / 0.563 GB, free: 15.95 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006919/0.4417, allocations: 0.5137 MB / 0.5635 GB, free: 15.43 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.376e-05/0.4417, allocations: 29.7 kB / 0.5635 GB, free: 15.39 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000246/0.442, allocations: 299.7 kB / 0.5638 GB, free: 15.1 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.002e-05/0.442, allocations: 59.53 kB / 0.5639 GB, free: 15.04 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001583/0.4422, allocations: 89.64 kB / 0.564 GB, free: 14.95 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.4424, allocations: 358.8 kB / 0.5643 GB, free: 14.59 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002453/0.4426, allocations: 141.2 kB / 0.5645 GB, free: 14.44 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004204/0.4431, allocations: 326.1 kB / 0.5648 GB, free: 14.05 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005908/0.4437, allocations: 457 kB / 0.5652 GB, free: 13.53 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.4437, allocations: 8 kB / 0.5652 GB, free: 13.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008453/0.4445, allocations: 0.5377 MB / 0.5657 GB, free: 12.97 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.038e-05/0.4446, allocations: 37.69 kB / 0.5658 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.4446, allocations: 12.03 kB / 0.5658 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.4446, allocations: 4 kB / 0.5658 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003093/0.4449, allocations: 79.84 kB / 0.5659 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.435e-05/0.445, allocations: 8 kB / 0.5659 GB, free: 12.83 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003613/0.4453, allocations: 63.55 kB / 0.5659 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.049e-05/0.4454, allocations: 20 kB / 0.5659 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000402/0.4458, allocations: 264.5 kB / 0.5662 GB, free: 12.48 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003807/0.4462, allocations: 322 kB / 0.5665 GB, free: 12.09 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005827/0.4468, allocations: 453 kB / 0.5669 GB, free: 11.57 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.179e-06/0.4468, allocations: 4 kB / 0.5669 GB, free: 11.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0008215/0.4476, allocations: 0.5325 MB / 0.5675 GB, free: 11.02 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.995e-05/0.4477, allocations: 33.7 kB / 0.5675 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.4477, allocations: 4 kB / 0.5675 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.4477, allocations: 8 kB / 0.5675 GB, free: 10.97 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002686/0.448, allocations: 80.48 kB / 0.5676 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.448, allocations: 19.88 kB / 0.5676 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003728/0.4484, allocations: 39.77 kB / 0.5676 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.58e-05/0.4484, allocations: 20 kB / 0.5677 GB, free: 10.82 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 7 (p_table.nextEventScaled,p_table.nextEvent,$PRE.p_table.nextEvent,p_table.last,p_table.b,p_table.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * 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 0.000209/0.4486, allocations: 245.8 kB / 0.5679 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.077e-05/0.4487, allocations: 51.67 kB / 0.5679 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006408/0.4494, allocations: 367.3 kB / 0.5683 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.4494, allocations: 7.938 kB / 0.5683 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.4494, allocations: 0 / 0.5683 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.4494, allocations: 0 / 0.5683 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004783/0.4499, allocations: 413.3 kB / 0.5687 GB, free: 9.676 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.4499, allocations: 0 / 0.5687 GB, free: 9.676 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.45, allocations: 24 kB / 0.5687 GB, free: 9.652 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.45, allocations: 3.938 kB / 0.5687 GB, free: 9.648 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.401e-05/0.45, allocations: 11.92 kB / 0.5687 GB, free: 9.637 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.45, allocations: 0 / 0.5687 GB, free: 9.637 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4501, allocations: 3.938 kB / 0.5687 GB, free: 9.633 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005438/0.4506, allocations: 373.7 kB / 0.5691 GB, free: 9.246 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/0.4507, allocations: 124.8 kB / 0.5692 GB, free: 9.105 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.925e-05/0.4508, allocations: 12.06 kB / 0.5692 GB, free: 9.094 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002185/0.451, allocations: 8 kB / 0.5692 GB, free: 9.086 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.638e-05/0.4511, allocations: 15.98 kB / 0.5692 GB, free: 9.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.146e-05/0.4511, allocations: 7.984 kB / 0.5693 GB, free: 9.062 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004465/0.4516, allocations: 374.8 kB / 0.5696 GB, free: 8.699 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4516, allocations: 4 kB / 0.5696 GB, free: 8.695 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001091/0.4527, allocations: 442.8 kB / 0.57 GB, free: 8.262 MB / 430.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: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.001805/0.4545, allocations: 1.221 MB / 0.5712 GB, free: 7.008 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001038/0.4555, allocations: 0.6668 MB / 0.5719 GB, free: 6.316 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.4556, allocations: 3.938 kB / 0.5719 GB, free: 6.312 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002352/0.4558, allocations: 188.4 kB / 0.5721 GB, free: 6.121 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009235/0.4567, allocations: 203.5 kB / 0.5723 GB, free: 5.93 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005854/0.4626, allocations: 4.397 MB / 0.5766 GB, free: 1.324 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005035/0.4631, allocations: 0.8393 MB / 0.5774 GB, free: 468 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004781/0.4636, allocations: 167.9 kB / 0.5775 GB, free: 304 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002368/0.4638, allocations: 151.4 kB / 0.5777 GB, free: 152 kB / 430.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4639, allocations: 0 / 0.5777 GB, free: 152 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04896/0.5128, allocations: 17.07 MB / 0.5943 GB, free: 15.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.336/9.849, allocations: 11.44 kB / 0.5944 GB, free: 15.23 MB / 462.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1)