Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.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.TestBarometricCondenser,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestBarometricCondenser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestBarometricCondenser,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestBarometricCondenser",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.0007947/0.0007947, allocations: 90.34 kB / 16.65 MB, free: 6.59 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.0008761/0.0008761, allocations: 181.9 kB / 17.56 MB, free: 6.203 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.16/1.16, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2363/0.2363, allocations: 48.78 MB / 320.8 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.0004392/0.0004392, allocations: 14.45 kB / 391.9 MB, free: 50.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07544/0.07589, allocations: 60.26 MB / 452.2 MB, free: 9.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestBarometricCondenser): time 0.0429/0.1188, allocations: 50.82 MB / 0.4912 GB, free: 6.078 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01751/0.1364, allocations: 17.62 MB / 0.5084 GB, free: 4.402 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004132/0.1368, allocations: 11.94 kB / 0.5084 GB, free: 4.391 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005851/0.1374, allocations: 214.9 kB / 0.5086 GB, free: 4.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004561/0.142, allocations: 1.931 MB / 0.5105 GB, free: 2.242 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00648/0.1485, allocations: 2.663 MB / 0.5131 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001114/0.1496, allocations: 1.207 MB / 0.5143 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003594/0.1499, allocations: 260 kB / 0.5145 GB, free: 14.1 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003203/0.1503, allocations: 302.7 kB / 0.5148 GB, free: 13.8 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003556/0.1506, allocations: 366.6 kB / 0.5152 GB, free: 13.45 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.589e-05/0.1507, allocations: 16 kB / 0.5152 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01121/0.1619, allocations: 7.426 MB / 0.5225 GB, free: 5.996 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.979e-05/0.162, allocations: 83.61 kB / 0.5225 GB, free: 5.914 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002575/0.1623, allocations: 256.5 kB / 0.5228 GB, free: 5.656 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006084/0.1684, allocations: 4.596 MB / 0.5273 GB, free: 1.051 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1684, allocations: 0 / 0.5273 GB, free: 1.051 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1684, allocations: 0 / 0.5273 GB, free: 1.051 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.1684, allocations: 0 / 0.5273 GB, free: 1.051 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.1543/0.3227, allocations: 1.27 MB / 0.5285 GB, free: 67.05 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.3228, allocations: 8.188 kB / 0.5285 GB, free: 67.05 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000131/0.3229, allocations: 75.59 kB / 0.5286 GB, free: 67.01 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009922/0.3239, allocations: 150.4 kB / 0.5287 GB, free: 66.98 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003742/0.3243, allocations: 354 kB / 0.5291 GB, free: 66.74 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.236e-05/0.3243, allocations: 27.59 kB / 0.5291 GB, free: 66.74 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.398e-05/0.3244, allocations: 38.39 kB / 0.5291 GB, free: 66.74 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007559/0.3252, allocations: 483.8 kB / 0.5296 GB, free: 66.61 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.3252, allocations: 1.891 kB / 0.5296 GB, free: 66.61 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/0.3252, allocations: 15.34 kB / 0.5296 GB, free: 66.61 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.3252, allocations: 9.344 kB / 0.5296 GB, free: 66.61 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005548/0.3258, allocations: 304.3 kB / 0.5299 GB, free: 66.61 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.001651/0.3275, allocations: 2.514 MB / 0.5324 GB, free: 64.64 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005022/0.328, allocations: 282.2 kB / 0.5326 GB, free: 64.62 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001743/0.3282, allocations: 148.3 kB / 0.5328 GB, free: 64.61 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05389/0.3821, allocations: 32.77 MB / 0.5648 GB, free: 43.68 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005019/0.3826, allocations: 306.5 kB / 0.5651 GB, free: 43.51 MB / 414.1 MB Notification: Performance of pre-optimization done (n=32): time 2.244e-06/0.3826, allocations: 6.906 kB / 0.5651 GB, free: 43.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=36): time 0.002907/0.3855, allocations: 1.696 MB / 0.5667 GB, free: 42.71 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/0.3856, allocations: 145.5 kB / 0.5669 GB, free: 42.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002961/0.3859, allocations: 413 kB / 0.5673 GB, free: 42.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.3859, allocations: 34.89 kB / 0.5673 GB, free: 42.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.386, allocations: 236.4 kB / 0.5675 GB, free: 42.2 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.582e-05/0.3861, allocations: 109.6 kB / 0.5676 GB, free: 42.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.124e-05/0.3861, allocations: 36.7 kB / 0.5677 GB, free: 42.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.726e-05/0.3862, allocations: 359.4 kB / 0.568 GB, free: 41.78 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.3863, allocations: 135 kB / 0.5681 GB, free: 41.76 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/0.3865, allocations: 220.9 kB / 0.5683 GB, free: 41.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003503/0.3869, allocations: 473.2 kB / 0.5688 GB, free: 41.43 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.3869, allocations: 0 / 0.5688 GB, free: 41.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007299/0.3876, allocations: 0.6086 MB / 0.5694 GB, free: 41.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.86e-05/0.3877, allocations: 78.03 kB / 0.5695 GB, free: 41.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3877, allocations: 3.938 kB / 0.5695 GB, free: 41.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.3887, allocations: 156 kB / 0.5696 GB, free: 41.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001904/0.3889, allocations: 61.19 kB / 0.5697 GB, free: 41.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005469/0.3895, allocations: 1.139 MB / 0.5708 GB, free: 40.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/0.3897, allocations: 43.09 kB / 0.5708 GB, free: 40.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.759e-05/0.3898, allocations: 19.72 kB / 0.5708 GB, free: 40.04 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 15 (coolingFlowRate.nextEventScaled,coolingFlowRate.nextEvent,$PRE.coolingFlowRate.nextEvent,coolingFlowRate.last,coolingFlowRate.b,coolingFlowRate.a,steamFlowRate.nextEventScaled,steamFlowRate.nextEvent,$PRE.steamFlowRate.nextEvent,steamFlowRate.last,steamFlowRate.b,steamFlowRate.a,$whenCondition2,$whenCondition1,tank.liquidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001597/0.3899, allocations: 243.1 kB / 0.5711 GB, free: 39.85 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.488e-05/0.39, allocations: 51.22 kB / 0.5711 GB, free: 39.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001443/0.3914, allocations: 1.585 MB / 0.5727 GB, free: 39.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/0.3914, allocations: 24.97 kB / 0.5727 GB, free: 39.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3915, allocations: 0 / 0.5727 GB, free: 39.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.3915, allocations: 3.984 kB / 0.5727 GB, free: 39.42 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005467/0.392, allocations: 0.7344 MB / 0.5734 GB, free: 39.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.392, allocations: 0 / 0.5734 GB, free: 39.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001894/0.3922, allocations: 45.06 kB / 0.5735 GB, free: 39.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005733/0.3928, allocations: 370.2 kB / 0.5738 GB, free: 39 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.753e-05/0.3928, allocations: 18.45 kB / 0.5738 GB, free: 38.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005529/0.3934, allocations: 1.336 MB / 0.5751 GB, free: 37.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3934, allocations: 2.906 kB / 0.5751 GB, free: 37.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001393/0.3948, allocations: 1.701 MB / 0.5768 GB, free: 36.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.395, allocations: 191.5 kB / 0.577 GB, free: 36.75 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.03e-05/0.395, allocations: 13.5 kB / 0.577 GB, free: 36.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000192/0.3952, allocations: 27.77 kB / 0.577 GB, free: 36.71 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.266e-05/0.3953, allocations: 24.03 kB / 0.577 GB, free: 36.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.467e-05/0.3953, allocations: 19.05 kB / 0.5771 GB, free: 36.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001879/0.3955, allocations: 285.5 kB / 0.5773 GB, free: 36.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3955, allocations: 0 / 0.5773 GB, free: 36.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001921/0.3974, allocations: 1.102 MB / 0.5784 GB, free: 35.49 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (barometricCondenser.hl,tank.y,tank.h) * Number of discrete variables: 22 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$whenCondition1,$whenCondition2,steamFlowRate.a,steamFlowRate.b,steamFlowRate.last,steamFlowRate.nextEvent,steamFlowRate.nextEventScaled,coolingFlowRate.a,coolingFlowRate.b,coolingFlowRate.last,coolingFlowRate.nextEvent,coolingFlowRate.nextEventScaled) * Number of discrete states: 12 (steamFlowRate.nextEvent,steamFlowRate.last,steamFlowRate.nextEventScaled,steamFlowRate.b,steamFlowRate.a,$whenCondition1,coolingFlowRate.nextEvent,coolingFlowRate.last,coolingFlowRate.nextEventScaled,coolingFlowRate.b,coolingFlowRate.a,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004853/0.4023, allocations: 3.317 MB / 0.5816 GB, free: 32.9 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000784/0.4031, allocations: 0.7488 MB / 0.5824 GB, free: 32.33 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.4031, allocations: 0 / 0.5824 GB, free: 32.33 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004745/0.4036, allocations: 0.5947 MB / 0.583 GB, free: 31.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008643/0.4045, allocations: 185.3 kB / 0.5831 GB, free: 31.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004989/0.4095, allocations: 5.632 MB / 0.5886 GB, free: 25.83 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002235/0.4097, allocations: 0.909 MB / 0.5895 GB, free: 24.89 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001785/0.4099, allocations: 95.62 kB / 0.5896 GB, free: 24.81 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/0.41, allocations: 223.4 kB / 0.5898 GB, free: 24.59 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4101, allocations: 0 / 0.5898 GB, free: 24.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05797/0.468, allocations: 46.7 MB / 0.6354 GB, free: 9.922 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002075/0.4683, allocations: 240.3 kB / 0.6357 GB, free: 9.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.609/4.077, allocations: 0 / 0.6357 GB, free: 9.66 MB / 446.1 MB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestBarometricCondenser_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestBarometricCondenser.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.pipe 2>&1)