Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestST2.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.TestST2,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestST2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestST2,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestST2",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.001156/0.001156, allocations: 97.53 kB / 16.94 MB, free: 5.824 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.001112/0.001112, allocations: 187.3 kB / 17.87 MB, free: 5.16 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.195/1.195, allocations: 205.1 MB / 223.8 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2433/0.2433, allocations: 48.84 MB / 319.9 MB, free: 11.11 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.001274/0.001274, allocations: 69.23 kB / 390.2 MB, free: 48.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08129/0.08258, allocations: 59.16 MB / 449.4 MB, free: 9.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestST2): time 0.03182/0.1144, allocations: 37.1 MB / 486.5 MB, free: 4.402 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01558/0.1301, allocations: 14.81 MB / 0.4896 GB, free: 5.539 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002764/0.1304, allocations: 11.94 kB / 0.4896 GB, free: 5.527 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004546/0.1308, allocations: 150.9 kB / 0.4897 GB, free: 5.379 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003668/0.1313, allocations: 210.5 kB / 0.4899 GB, free: 5.172 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01375/0.145, allocations: 6.496 MB / 0.4963 GB, free: 14.65 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007469/0.1458, allocations: 0.5909 MB / 0.4968 GB, free: 14.06 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003114/0.1461, allocations: 217.6 kB / 0.4971 GB, free: 13.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002584/0.1464, allocations: 215.1 kB / 0.4973 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002515/0.1466, allocations: 226.9 kB / 0.4975 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.021e-05/0.1467, allocations: 28 kB / 0.4975 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01353/0.1602, allocations: 8.818 MB / 0.5061 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.64e-05/0.1603, allocations: 71.64 kB / 0.5062 GB, free: 4.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002324/0.1606, allocations: 191.1 kB / 0.5064 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007802/0.1684, allocations: 5.142 MB / 0.5114 GB, free: 15.14 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1684, allocations: 0 / 0.5114 GB, free: 15.14 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.1684, allocations: 0 / 0.5114 GB, free: 15.14 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.1684, allocations: 3.938 kB / 0.5114 GB, free: 15.14 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.002807/0.1713, allocations: 1.228 MB / 0.5126 GB, free: 13.86 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.1713, allocations: 11.89 kB / 0.5126 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.971e-05/0.1714, allocations: 66.72 kB / 0.5127 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002183/0.1716, allocations: 60.45 kB / 0.5127 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003696/0.172, allocations: 323.3 kB / 0.513 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.829e-05/0.172, allocations: 28.92 kB / 0.5131 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.326e-05/0.1721, allocations: 31.84 kB / 0.5131 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005765/0.1726, allocations: 322.2 kB / 0.5134 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.1727, allocations: 0 / 0.5134 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.275e-05/0.1727, allocations: 15.94 kB / 0.5134 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.1727, allocations: 12 kB / 0.5134 GB, free: 12.94 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004666/0.1732, allocations: 206 kB / 0.5136 GB, free: 12.74 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.00162/0.1748, allocations: 1.474 MB / 0.5151 GB, free: 11.13 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004811/0.1753, allocations: 178.6 kB / 0.5152 GB, free: 10.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.1754, allocations: 56.83 kB / 0.5153 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2457/0.4211, allocations: 63.95 MB / 0.5777 GB, free: 41.25 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.4212, allocations: 34.66 kB / 0.5778 GB, free: 41.21 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 1.914e-06/0.4212, allocations: 1.094 kB / 0.5778 GB, free: 41.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009889/0.4222, allocations: 402.5 kB / 0.5782 GB, free: 40.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.436e-05/0.4222, allocations: 51.41 kB / 0.5782 GB, free: 40.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002844/0.4225, allocations: 364.4 kB / 0.5785 GB, free: 40.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/0.4226, allocations: 25.7 kB / 0.5786 GB, free: 40.49 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.104e-05/0.4227, allocations: 208.5 kB / 0.5788 GB, free: 40.38 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.965e-05/0.4227, allocations: 50.97 kB / 0.5788 GB, free: 40.34 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.493e-05/0.4228, allocations: 46.12 kB / 0.5789 GB, free: 40.3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.234e-05/0.4228, allocations: 344.6 kB / 0.5792 GB, free: 39.96 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.11e-05/0.4229, allocations: 43.98 kB / 0.5792 GB, free: 39.92 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.601e-05/0.423, allocations: 102.7 kB / 0.5793 GB, free: 39.79 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: Inertia1.a = $START.Inertia1.a (0.0 = $START.Inertia1.a) Notification: Performance of analyzeInitialSystem (initialization): time 0.0007471/0.4238, allocations: 375.5 kB / 0.5797 GB, free: 39.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.4238, allocations: 0 / 0.5797 GB, free: 39.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003145/0.4241, allocations: 232.6 kB / 0.5799 GB, free: 39.17 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.4241, allocations: 8 kB / 0.5799 GB, free: 39.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.4241, allocations: 3.75 kB / 0.5799 GB, free: 39.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001098/0.4242, allocations: 31.47 kB / 0.58 GB, free: 39.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000154/0.4244, allocations: 47.97 kB / 0.58 GB, free: 39.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006552/0.4251, allocations: 1.386 MB / 0.5814 GB, free: 37.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001495/0.4252, allocations: 27.84 kB / 0.5814 GB, free: 37.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.4253, allocations: 8 kB / 0.5814 GB, free: 37.54 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: Inertia1.a = $START.Inertia1.a. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (ST.fluidState_in.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.4254, allocations: 143.3 kB / 0.5815 GB, free: 37.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.679e-05/0.4254, allocations: 35.61 kB / 0.5816 GB, free: 37.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005362/0.426, allocations: 0.6074 MB / 0.5822 GB, free: 36.74 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.426, allocations: 12 kB / 0.5822 GB, free: 36.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.426, allocations: 0 / 0.5822 GB, free: 36.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.426, allocations: 4.859 kB / 0.5822 GB, free: 36.73 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008462/0.4268, allocations: 1.068 MB / 0.5832 GB, free: 35.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.4269, allocations: 4 kB / 0.5832 GB, free: 35.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001508/0.427, allocations: 35.97 kB / 0.5832 GB, free: 35.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.193e-05/0.4271, allocations: 28.64 kB / 0.5833 GB, free: 35.54 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.4271, allocations: 3.984 kB / 0.5833 GB, free: 35.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005107/0.4276, allocations: 1.37 MB / 0.5846 GB, free: 34.03 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4276, allocations: 2.75 kB / 0.5846 GB, free: 34.03 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005148/0.4282, allocations: 0.654 MB / 0.5853 GB, free: 33.36 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.401e-05/0.4282, allocations: 128.4 kB / 0.5854 GB, free: 33.21 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.591e-05/0.4283, allocations: 8 kB / 0.5854 GB, free: 33.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.4284, allocations: 3.984 kB / 0.5854 GB, free: 33.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.738e-05/0.4285, allocations: 15.98 kB / 0.5854 GB, free: 33.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.4285, allocations: 4 kB / 0.5854 GB, free: 33.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001721/0.4287, allocations: 255.2 kB / 0.5857 GB, free: 32.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.42e-07/0.4287, allocations: 3.844 kB / 0.5857 GB, free: 32.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002282/0.431, allocations: 1.265 MB / 0.5869 GB, free: 31.77 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (ST.P_HP,ST.P_LP,Speed1.phi) * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.004222/0.4352, allocations: 2.395 MB / 0.5892 GB, free: 29.53 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003837/0.4356, allocations: 297.3 kB / 0.5895 GB, free: 29.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4356, allocations: 4 kB / 0.5895 GB, free: 29.23 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001832/0.4358, allocations: 250.8 kB / 0.5898 GB, free: 28.98 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007247/0.4365, allocations: 166 kB / 0.5899 GB, free: 28.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003518/0.44, allocations: 3.851 MB / 0.5937 GB, free: 24.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001509/0.4402, allocations: 0.8076 MB / 0.5945 GB, free: 24.07 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001333/0.4403, allocations: 80.3 kB / 0.5945 GB, free: 24 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.4405, allocations: 139.4 kB / 0.5947 GB, free: 23.86 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4405, allocations: 4 kB / 0.5947 GB, free: 23.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07365/0.5141, allocations: 53.94 MB / 0.6474 GB, free: 1.832 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.44, allocations: 11.61 kB / 0.6474 GB, free: 1.824 MB / 446.1 MB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestST2.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestST2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestST2.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestST2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestST2_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestST2.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestST2.pipe 2>&1)