Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.conf.json 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/IDEAS 3.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.Storage.Examples.Stratified,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Storage.Examples.Stratified,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001774/0.001774, allocations: 174.1 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7843/0.7843, allocations: 133.4 MB / 146.7 MB, free: 10.79 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.75/1.75, allocations: 221.3 MB / 400.4 MB, free: 5.824 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 92.56 kB / 483.3 MB, free: 5.863 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 5.083e-05/5.085e-05, allocations: 6.922 kB / 0.5601 GB, free: 87.89 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2244, allocations: 82.31 MB / 0.6405 GB, free: 7.73 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.616/1.841, allocations: 385.3 MB / 1.017 GB, free: 201.8 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002427/1.841, allocations: 89.33 kB / 1.017 GB, free: 201.8 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 12.46/14.3, allocations: 2.976 GB / 3.993 GB, free: 69.64 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.335e-06/14.3, allocations: 1.781 kB / 3.993 GB, free: 69.64 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.002242/14.31, allocations: 263.8 kB / 3.993 GB, free: 69.6 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 0.035/14.34, allocations: 8.343 MB / 4.001 GB, free: 66.53 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.14e-05/14.34, allocations: 11.72 kB / 4.001 GB, free: 66.53 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006993/14.35, allocations: 1.133 MB / 4.002 GB, free: 66.44 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009933/14.36, allocations: 1.176 MB / 4.003 GB, free: 65.89 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03501/14.39, allocations: 11.06 MB / 4.014 GB, free: 64.78 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001063/14.39, allocations: 0.6119 MB / 4.015 GB, free: 64.76 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005093/14.4, allocations: 0.8199 MB / 4.016 GB, free: 64.75 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04338/14.44, allocations: 11.54 MB / 4.027 GB, free: 63.54 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005316/14.44, allocations: 33.42 kB / 4.027 GB, free: 63.53 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003651/14.45, allocations: 359 kB / 4.027 GB, free: 63.53 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002902/14.45, allocations: 246.2 kB / 4.028 GB, free: 63.53 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0281/14.48, allocations: 9.435 MB / 4.037 GB, free: 63.47 MB / 0.7136 GB Warning: The model contains alias variables with conflicting start and/or 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.1152/14.59, allocations: 46.63 MB / 4.082 GB, free: 42.57 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0149/14.61, allocations: 6.235 MB / 4.088 GB, free: 40.17 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01014/14.62, allocations: 5.405 MB / 4.094 GB, free: 38.47 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001662/14.62, allocations: 0.8222 MB / 4.094 GB, free: 37.7 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008986/14.63, allocations: 3.323 MB / 4.098 GB, free: 36.51 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00761/14.63, allocations: 0.5575 MB / 4.098 GB, free: 36.13 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=449): time 3.529e-05/14.63, allocations: 0 / 4.098 GB, free: 36.13 MB / 0.7136 GB Notification: Performance of matching and sorting (n=449): time 0.01878/14.65, allocations: 6.202 MB / 4.104 GB, free: 33.86 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001443/14.65, allocations: 154.7 kB / 4.104 GB, free: 33.73 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02384/14.68, allocations: 7.128 MB / 4.111 GB, free: 31.29 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.002314/14.68, allocations: 108 kB / 4.112 GB, free: 31.2 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.008132/14.69, allocations: 4.332 MB / 4.116 GB, free: 27.92 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.00357/14.69, allocations: 1.555 MB / 4.117 GB, free: 26.73 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001645/14.69, allocations: 123.2 kB / 4.117 GB, free: 26.64 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0008867/14.69, allocations: 0.5412 MB / 4.118 GB, free: 26.23 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00651/14.7, allocations: 2.898 MB / 4.121 GB, free: 25.22 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007973/14.71, allocations: 4.764 MB / 4.125 GB, free: 21.82 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007809/14.72, allocations: 3.966 MB / 4.129 GB, free: 19.74 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.256e-05/14.72, allocations: 19.95 kB / 4.129 GB, free: 19.72 MB / 0.7136 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02138/14.74, allocations: 8.672 MB / 4.138 GB, free: 12.11 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.01171/14.75, allocations: 29.27 MB / 4.166 GB, free: 12.08 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002002/14.75, allocations: 56 kB / 4.166 GB, free: 12.03 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002304/14.75, allocations: 100 kB / 4.167 GB, free: 11.93 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008799/14.76, allocations: 1.441 MB / 4.168 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003579/14.76, allocations: 133.2 kB / 4.168 GB, free: 10.58 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01237/14.77, allocations: 0.6229 MB / 4.169 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002166/14.77, allocations: 283.3 kB / 4.169 GB, free: 9.828 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/14.77, allocations: 4 kB / 4.169 GB, free: 9.824 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02152/14.8, allocations: 8.079 MB / 4.177 GB, free: 2.816 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002766/14.8, allocations: 56 kB / 4.177 GB, free: 2.762 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001719/14.8, allocations: 100 kB / 4.177 GB, free: 2.664 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007649/14.8, allocations: 1.443 MB / 4.178 GB, free: 1.434 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002407/14.8, allocations: 128.8 kB / 4.178 GB, free: 1.32 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01123/14.82, allocations: 0.6066 MB / 4.179 GB, free: 0.8516 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002091/14.82, allocations: 280.9 kB / 4.179 GB, free: 0.5898 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 264 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled,dH.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 742 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003901/14.82, allocations: 0.5446 MB / 4.18 GB, free: 32 kB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.7923/15.61, allocations: 0.7168 MB / 4.181 GB, free: 96.13 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01882/15.63, allocations: 6.956 MB / 4.187 GB, free: 95.86 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.477e-05/15.63, allocations: 44.09 kB / 4.187 GB, free: 95.86 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.071e-05/15.63, allocations: 5 kB / 4.187 GB, free: 95.86 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01196/15.65, allocations: 5.673 MB / 4.193 GB, free: 95.63 MB / 0.7448 GB Warning: The model contains alias variables with conflicting start and/or 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 postOpt removeSimpleEquations (simulation): time 0.06305/15.71, allocations: 16.49 MB / 4.209 GB, free: 94.65 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-05/15.71, allocations: 4.719 kB / 4.209 GB, free: 94.65 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005581/15.71, allocations: 0.9112 MB / 4.21 GB, free: 94.65 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.916e-05/15.71, allocations: 12.47 kB / 4.21 GB, free: 94.65 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001565/15.72, allocations: 117.3 kB / 4.21 GB, free: 94.65 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.283e-05/15.72, allocations: 20.69 kB / 4.21 GB, free: 94.65 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/15.72, allocations: 0 / 4.21 GB, free: 94.65 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02508/15.74, allocations: 10.55 MB / 4.22 GB, free: 93.89 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009135/15.75, allocations: 1.757 MB / 4.222 GB, free: 93.43 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004743/15.75, allocations: 91.52 kB / 4.222 GB, free: 93.43 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01072/15.77, allocations: 0.5713 MB / 4.223 GB, free: 93.41 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001751/15.77, allocations: 255.2 kB / 4.223 GB, free: 93.41 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001775/15.77, allocations: 199 kB / 4.223 GB, free: 93.41 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.01798/15.79, allocations: 5.559 MB / 4.229 GB, free: 93.16 MB / 0.7448 GB Notification: Performance of sort global known variables: time 8.12e-07/15.79, allocations: 0 / 4.229 GB, free: 93.16 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.02979/15.82, allocations: 4.925 MB / 4.233 GB, free: 92.8 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 21 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 441 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0358/15.85, allocations: 12.01 MB / 4.245 GB, free: 91.25 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.02831/15.88, allocations: 11.42 MB / 4.256 GB, free: 90.88 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.193e-05/15.88, allocations: 3.562 kB / 4.256 GB, free: 90.88 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.007295/15.89, allocations: 3.124 MB / 4.259 GB, free: 90.73 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02995/15.92, allocations: 4.381 MB / 4.264 GB, free: 90.71 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08279/16, allocations: 19.54 MB / 4.283 GB, free: 87.7 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01648/16.02, allocations: 6.306 MB / 4.289 GB, free: 86.81 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.03548/16.05, allocations: 6.692 MB / 4.295 GB, free: 86.74 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01419/16.07, allocations: 3.631 MB / 4.299 GB, free: 86.73 MB / 0.7448 GB Notification: Performance of SimCode: time 1.913e-06/16.07, allocations: 0 / 4.299 GB, free: 86.73 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.134/17.2, allocations: 240.6 MB / 4.534 GB, free: 107.5 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001706/17.2, allocations: 176.3 kB / 4.534 GB, free: 107.3 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/27.69, allocations: 3.844 kB / 4.534 GB, free: 107.3 MB / 0.7605 GB (rm -f IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 IDEAS_dev_IDEAS_Fluid_Storage_Examples_Stratified.fmu > IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe 2>&1)