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.00144/0.00144, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.162/1.162, allocations: 133.6 MB / 141.6 MB, free: 2.91 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.728/1.728, allocations: 221.5 MB / 395.5 MB, free: 10.82 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 109 kB / 478.2 MB, free: 1.301 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.516e-05/2.518e-05, allocations: 4 kB / 0.5535 GB, free: 8.941 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6267/0.6268, allocations: 82.3 MB / 0.6339 GB, free: 40.72 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9731/1.6, allocations: 384.6 MB / 1.01 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003248/1.6, allocations: 87.52 kB / 1.01 GB, free: 492 kB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 11.78/13.38, allocations: 2.961 GB / 3.971 GB, free: 40.21 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.753e-06/13.38, allocations: 0 / 3.971 GB, free: 40.21 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.001634/13.39, allocations: 265.4 kB / 3.971 GB, free: 39.97 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.03439/13.42, allocations: 8.343 MB / 3.979 GB, free: 31.6 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.246e-05/13.42, allocations: 8.031 kB / 3.979 GB, free: 31.59 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0108/13.43, allocations: 1.178 MB / 3.98 GB, free: 30.4 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04302/13.47, allocations: 11.05 MB / 3.991 GB, free: 19.46 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001009/13.48, allocations: 268 kB / 3.991 GB, free: 19.2 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005149/13.48, allocations: 492 kB / 3.992 GB, free: 18.72 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03421/13.52, allocations: 8.896 MB / 4.001 GB, free: 9.816 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7103/14.23, allocations: 10.34 MB / 4.011 GB, free: 64.39 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005364/14.23, allocations: 26.23 kB / 4.011 GB, free: 64.39 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003284/14.23, allocations: 16.81 kB / 4.011 GB, free: 64.39 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005152/14.23, allocations: 251.9 kB / 4.011 GB, free: 64.39 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.09186/14.32, allocations: 45.01 MB / 4.055 GB, free: 61.79 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01086/14.33, allocations: 5.999 MB / 4.061 GB, free: 61.55 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006424/14.34, allocations: 4.641 MB / 4.065 GB, free: 61.5 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001169/14.34, allocations: 0.8216 MB / 4.066 GB, free: 60.75 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005111/14.35, allocations: 3.178 MB / 4.069 GB, free: 60.59 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005612/14.35, allocations: 398.3 kB / 4.07 GB, free: 60.46 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=449): time 8.105e-06/14.35, allocations: 3.656 kB / 4.07 GB, free: 60.46 MB / 0.7292 GB Notification: Performance of matching and sorting (n=449): time 0.0118/14.36, allocations: 6.119 MB / 4.076 GB, free: 60 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/14.36, allocations: 161.3 kB / 4.076 GB, free: 59.88 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01458/14.38, allocations: 5.924 MB / 4.081 GB, free: 59.5 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.001814/14.38, allocations: 35.33 kB / 4.081 GB, free: 59.47 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.005547/14.39, allocations: 4.301 MB / 4.086 GB, free: 58.03 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.003098/14.39, allocations: 1.507 MB / 4.087 GB, free: 57.05 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004468/14.39, allocations: 0 / 4.087 GB, free: 57.05 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0005023/14.39, allocations: 0.5459 MB / 4.088 GB, free: 56.73 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003904/14.39, allocations: 2.781 MB / 4.09 GB, free: 56.71 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005008/14.4, allocations: 4.617 MB / 4.095 GB, free: 54.53 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006444/14.4, allocations: 4.061 MB / 4.099 GB, free: 54.48 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.905e-05/14.4, allocations: 14.56 kB / 4.099 GB, free: 54.48 MB / 0.7292 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01683/14.42, allocations: 8.241 MB / 4.107 GB, free: 54.04 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.01611/14.44, allocations: 28.12 MB / 4.134 GB, free: 40.89 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003499/14.44, allocations: 64.45 kB / 4.134 GB, free: 40.88 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001955/14.44, allocations: 98.94 kB / 4.135 GB, free: 40.88 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00821/14.45, allocations: 1.444 MB / 4.136 GB, free: 40.88 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001702/14.45, allocations: 127.4 kB / 4.136 GB, free: 40.88 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01006/14.46, allocations: 0.5077 MB / 4.137 GB, free: 40.82 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002635/14.46, allocations: 283.3 kB / 4.137 GB, free: 40.82 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/14.46, allocations: 7.703 kB / 4.137 GB, free: 40.82 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01579/14.48, allocations: 7.604 MB / 4.144 GB, free: 40.73 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001979/14.48, allocations: 60.09 kB / 4.144 GB, free: 40.73 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001068/14.48, allocations: 100.9 kB / 4.144 GB, free: 40.73 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005922/14.48, allocations: 1.438 MB / 4.146 GB, free: 40.73 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001594/14.48, allocations: 130.9 kB / 4.146 GB, free: 40.73 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009213/14.49, allocations: 488.9 kB / 4.146 GB, free: 40.68 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001575/14.49, allocations: 283.8 kB / 4.147 GB, free: 40.68 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.002252/14.5, allocations: 362.4 kB / 4.147 GB, free: 40.48 MB / 0.7448 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01387/14.51, allocations: 6.149 MB / 4.153 GB, free: 40.02 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002733/14.51, allocations: 0.64 MB / 4.154 GB, free: 39.69 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01229/14.52, allocations: 6.771 MB / 4.16 GB, free: 39.46 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.843e-05/14.52, allocations: 41.56 kB / 4.16 GB, free: 39.46 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/14.52, allocations: 0 / 4.16 GB, free: 39.46 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008262/14.53, allocations: 5.651 MB / 4.166 GB, free: 39.3 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.03616/14.57, allocations: 15.41 MB / 4.181 GB, free: 38.36 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-05/14.57, allocations: 0 / 4.181 GB, free: 38.36 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003934/14.57, allocations: 0.9059 MB / 4.182 GB, free: 38.36 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.981e-05/14.57, allocations: 18 kB / 4.182 GB, free: 38.36 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003116/14.57, allocations: 68.88 kB / 4.182 GB, free: 38.36 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.959e-05/14.57, allocations: 17.7 kB / 4.182 GB, free: 38.36 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/14.57, allocations: 3.938 kB / 4.182 GB, free: 38.36 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01582/14.59, allocations: 10.33 MB / 4.192 GB, free: 37.55 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00601/14.59, allocations: 1.67 MB / 4.194 GB, free: 37.12 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00272/14.6, allocations: 24.17 kB / 4.194 GB, free: 37.12 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00768/14.61, allocations: 0.4907 MB / 4.194 GB, free: 37.09 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007095/14.61, allocations: 255.4 kB / 4.194 GB, free: 37.08 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006675/14.61, allocations: 203.1 kB / 4.195 GB, free: 37.08 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.009313/14.62, allocations: 4.524 MB / 4.199 GB, free: 36.38 MB / 0.7448 GB Notification: Performance of sort global known variables: time 2.034e-06/14.62, allocations: 3.406 kB / 4.199 GB, free: 36.38 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.02489/14.64, allocations: 4.772 MB / 4.204 GB, free: 35.51 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.02077/14.66, allocations: 11.72 MB / 4.215 GB, free: 30.75 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.01835/14.68, allocations: 10.87 MB / 4.226 GB, free: 26.84 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.727e-05/14.68, allocations: 7.031 kB / 4.226 GB, free: 26.84 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.004053/14.68, allocations: 3.025 MB / 4.229 GB, free: 25.66 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02165/14.71, allocations: 3.476 MB / 4.232 GB, free: 25.12 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04662/14.75, allocations: 18.88 MB / 4.25 GB, free: 16.17 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007034/14.76, allocations: 6.304 MB / 4.257 GB, free: 11.5 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.02036/14.78, allocations: 5.943 MB / 4.262 GB, free: 7.797 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009033/14.79, allocations: 3.616 MB / 4.266 GB, free: 4.453 MB / 0.7448 GB Notification: Performance of SimCode: time 7.62e-07/14.79, allocations: 0 / 4.266 GB, free: 4.453 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9567/15.75, allocations: 202.3 MB / 4.464 GB, free: 86.89 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001908/15.75, allocations: 152.2 kB / 4.464 GB, free: 86.7 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/26.45, allocations: 0 / 4.464 GB, free: 86.7 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)