Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestAccumulator,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestAccumulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestAccumulator,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestAccumulator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 109 kB / 17.06 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001168/0.001169, allocations: 200 kB / 18 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.252/1.252, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2593/0.2593, allocations: 48.85 MB / 320.1 MB, free: 10.99 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 79.86 kB / 450 MB, free: 9.035 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09601/0.098, allocations: 59.15 MB / 0.4973 GB, free: 13.76 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestAccumulator): time 0.2118/0.3098, allocations: 32.46 MB / 0.529 GB, free: 6.543 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007188/0.317, allocations: 8.117 MB / 0.5369 GB, free: 6.418 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002041/0.3173, allocations: 7.406 kB / 0.5369 GB, free: 6.418 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004062/0.3177, allocations: 137.7 kB / 0.537 GB, free: 6.418 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003363/0.3181, allocations: 207.2 kB / 0.5372 GB, free: 6.406 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009968/0.3281, allocations: 4.41 MB / 0.5415 GB, free: 6.02 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007223/0.3288, allocations: 0.5824 MB / 0.5421 GB, free: 5.875 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003166/0.3291, allocations: 224.3 kB / 0.5423 GB, free: 5.855 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002287/0.3294, allocations: 212.1 kB / 0.5425 GB, free: 5.812 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002533/0.3296, allocations: 229.2 kB / 0.5427 GB, free: 5.758 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.294e-05/0.3297, allocations: 26.72 kB / 0.5428 GB, free: 5.758 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01114/0.3408, allocations: 6.009 MB / 0.5486 GB, free: 5.676 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.341, allocations: 68.62 kB / 0.5487 GB, free: 5.66 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002616/0.3412, allocations: 190 kB / 0.5489 GB, free: 5.605 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008039/0.3493, allocations: 3.512 MB / 0.5523 GB, free: 4.895 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3493, allocations: 0 / 0.5523 GB, free: 4.895 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3493, allocations: 0 / 0.5523 GB, free: 4.895 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.3493, allocations: 0 / 0.5523 GB, free: 4.895 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.003071/0.3524, allocations: 1.074 MB / 0.5534 GB, free: 4.121 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.3525, allocations: 12.92 kB / 0.5534 GB, free: 4.117 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.699e-05/0.3525, allocations: 67.44 kB / 0.5534 GB, free: 4.051 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001968/0.3527, allocations: 54.77 kB / 0.5535 GB, free: 4.023 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004171/0.3532, allocations: 313.2 kB / 0.5538 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.601e-05/0.3532, allocations: 23.92 kB / 0.5538 GB, free: 3.715 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.645e-05/0.3533, allocations: 28.97 kB / 0.5538 GB, free: 3.703 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006362/0.3539, allocations: 324.2 kB / 0.5541 GB, free: 3.488 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.3539, allocations: 1.688 kB / 0.5541 GB, free: 3.488 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/0.354, allocations: 10.5 kB / 0.5541 GB, free: 3.48 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.354, allocations: 5.875 kB / 0.5542 GB, free: 3.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006074/0.3546, allocations: 243.6 kB / 0.5544 GB, free: 3.367 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001233/0.3558, allocations: 1.319 MB / 0.5557 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004836/0.3563, allocations: 227.4 kB / 0.5559 GB, free: 2.008 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002229/0.3566, allocations: 117.1 kB / 0.556 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06649/0.4231, allocations: 32.11 MB / 0.5874 GB, free: 7.023 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.159e-05/0.4231, allocations: 42.55 kB / 0.5874 GB, free: 6.973 MB / 446.1 MB Notification: Performance of pre-optimization done (n=23): time 1.864e-06/0.4231, allocations: 0 / 0.5874 GB, free: 6.973 MB / 446.1 MB Notification: Performance of matching and sorting (n=27): time 0.002917/0.4261, allocations: 1.05 MB / 0.5884 GB, free: 5.867 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.316e-05/0.4261, allocations: 55.41 kB / 0.5885 GB, free: 5.801 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003506/0.4265, allocations: 309.7 kB / 0.5888 GB, free: 5.496 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.881e-05/0.4265, allocations: 29.7 kB / 0.5888 GB, free: 5.461 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.4267, allocations: 188.8 kB / 0.589 GB, free: 5.273 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.817e-05/0.4268, allocations: 99.86 kB / 0.5891 GB, free: 5.18 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.527e-05/0.4269, allocations: 49.7 kB / 0.5891 GB, free: 5.125 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.427, allocations: 346.8 kB / 0.5895 GB, free: 4.777 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002707/0.4273, allocations: 112.8 kB / 0.5896 GB, free: 4.664 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002862/0.4276, allocations: 130.7 kB / 0.5897 GB, free: 4.531 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005417/0.4282, allocations: 242.2 kB / 0.5899 GB, free: 4.289 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.4282, allocations: 7.938 kB / 0.5899 GB, free: 4.281 MB / 446.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001349/0.4295, allocations: 489.7 kB / 0.5904 GB, free: 3.793 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.4296, allocations: 7.984 kB / 0.5904 GB, free: 3.785 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.4296, allocations: 4 kB / 0.5904 GB, free: 3.781 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001215/0.4308, allocations: 252.6 kB / 0.5907 GB, free: 3.531 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/0.431, allocations: 31.97 kB / 0.5907 GB, free: 3.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001123/0.4321, allocations: 0.8098 MB / 0.5915 GB, free: 2.664 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002292/0.4323, allocations: 20.92 kB / 0.5915 GB, free: 2.645 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.935e-05/0.4324, allocations: 12 kB / 0.5915 GB, free: 2.633 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003564/0.4327, allocations: 204.1 kB / 0.5917 GB, free: 2.43 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002741/0.433, allocations: 129.6 kB / 0.5918 GB, free: 2.297 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005248/0.4336, allocations: 246.4 kB / 0.5921 GB, free: 2.051 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.172e-06/0.4336, allocations: 0 / 0.5921 GB, free: 2.051 MB / 446.1 MB Notification: Performance of matching and sorting (n=32) (initialization_lambda0): time 0.001276/0.4349, allocations: 477.8 kB / 0.5925 GB, free: 1.574 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.013e-05/0.4349, allocations: 4 kB / 0.5925 GB, free: 1.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.984e-06/0.4349, allocations: 0 / 0.5925 GB, free: 1.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00109/0.436, allocations: 244.6 kB / 0.5928 GB, free: 1.328 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.4361, allocations: 39.97 kB / 0.5928 GB, free: 1.289 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009708/0.4371, allocations: 0.7804 MB / 0.5936 GB, free: 496 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002164/0.4374, allocations: 23.98 kB / 0.5936 GB, free: 472 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.209e-05/0.4374, allocations: 12 kB / 0.5936 GB, free: 460 kB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (Accumulator1.liquidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0001357/0.4375, allocations: 188.3 kB / 0.5938 GB, free: 264 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.365e-05/0.4376, allocations: 43.69 kB / 0.5938 GB, free: 220 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001084/0.4387, allocations: 0.5568 MB / 0.5944 GB, free: 15.65 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.4387, allocations: 7.984 kB / 0.5944 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.85e-06/0.4387, allocations: 0 / 0.5944 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.4387, allocations: 0 / 0.5944 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00166/0.4404, allocations: 1.047 MB / 0.5954 GB, free: 14.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.4404, allocations: 0 / 0.5954 GB, free: 14.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00035/0.4408, allocations: 71.89 kB / 0.5954 GB, free: 14.47 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002675/0.441, allocations: 55.81 kB / 0.5955 GB, free: 14.42 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/0.4411, allocations: 10.11 kB / 0.5955 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001274/0.4424, allocations: 1.434 MB / 0.5969 GB, free: 12.84 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4424, allocations: 0 / 0.5969 GB, free: 12.84 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.4436, allocations: 0.687 MB / 0.5976 GB, free: 12.14 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000147/0.4438, allocations: 132.8 kB / 0.5977 GB, free: 11.99 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.405e-05/0.4438, allocations: 4 kB / 0.5977 GB, free: 11.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.4441, allocations: 15.98 kB / 0.5977 GB, free: 11.97 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.214e-05/0.4441, allocations: 31.95 kB / 0.5978 GB, free: 11.94 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.669e-05/0.4442, allocations: 4 kB / 0.5978 GB, free: 11.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002301/0.4444, allocations: 223.2 kB / 0.598 GB, free: 11.71 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4444, allocations: 0 / 0.598 GB, free: 11.71 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00333/0.4477, allocations: 0.8774 MB / 0.5988 GB, free: 10.84 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Accumulator1.zl,Accumulator1.hl,Accumulator1.Mg,Accumulator1.Tg) * Number of discrete variables: 2 ($cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006417/0.4542, allocations: 2.101 MB / 0.6009 GB, free: 8.793 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001745/0.4559, allocations: 0.5974 MB / 0.6015 GB, free: 8.195 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4559, allocations: 0 / 0.6015 GB, free: 8.195 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005582/0.4565, allocations: 314.5 kB / 0.6018 GB, free: 7.875 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008774/0.4574, allocations: 150.3 kB / 0.6019 GB, free: 7.73 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007261/0.4647, allocations: 3.957 MB / 0.6058 GB, free: 3.695 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004197/0.4651, allocations: 0.8079 MB / 0.6066 GB, free: 2.863 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001565/0.4653, allocations: 30.97 kB / 0.6066 GB, free: 2.836 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001882/0.4655, allocations: 131.4 kB / 0.6067 GB, free: 2.707 MB / 462.1 MB Notification: Performance of SimCode: time 2.395e-06/0.4655, allocations: 0 / 0.6067 GB, free: 2.707 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.835/3.301, allocations: 38.97 MB / 0.6448 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.57/19.87, allocations: 12.22 kB / 0.6448 GB, free: 11.61 MB / 0.4981 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestAccumulator_fmu --startTime=0 --stopTime=8000 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestAccumulator.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe 2>&1)