Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified2.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.Examples.FlowSystem.Simplified2,fileNamePrefix="IDEAS_IDEAS_Fluid_Examples_FlowSystem_Simplified2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Examples.FlowSystem.Simplified2,fileNamePrefix="IDEAS_IDEAS_Fluid_Examples_FlowSystem_Simplified2",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.00158/0.00158, allocations: 175.2 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.7423/0.7423, allocations: 133.4 MB / 146.7 MB, free: 10.78 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.463/1.463, allocations: 221.3 MB / 400.4 MB, free: 5.832 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.0008825/0.0008825, allocations: 86.78 kB / 483.3 MB, free: 5.887 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.845e-05/3.847e-05, allocations: 6.406 kB / 0.5601 GB, free: 87.88 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1533, allocations: 82.3 MB / 0.6405 GB, free: 7.738 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.277/1.43, allocations: 424.2 MB / 1.055 GB, free: 171.2 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002067/1.43, allocations: 94.02 kB / 1.055 GB, free: 171.2 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 36.32/37.76, allocations: 8.755 GB / 9.809 GB, free: 0 / 0.948 GB Notification: Performance of FrontEnd: time 2.274e-06/37.76, allocations: 0 / 9.809 GB, free: 0 / 0.948 GB Notification: Performance of Transformations before backend: time 1.691/39.45, allocations: 430.2 kB / 9.81 GB, free: 40.14 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2029 * Number of variables: 2029 Notification: Performance of Generate backend data structure: time 0.0609/39.51, allocations: 13.51 MB / 9.823 GB, free: 37.51 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.42e-05/39.51, allocations: 7.875 kB / 9.823 GB, free: 37.51 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006021/39.51, allocations: 1.035 MB / 9.824 GB, free: 37.43 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01751/39.53, allocations: 2.191 MB / 9.826 GB, free: 36.46 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08011/39.61, allocations: 21.55 MB / 9.847 GB, free: 34.02 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001718/39.61, allocations: 0.682 MB / 9.848 GB, free: 34.01 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007198/39.62, allocations: 0.9591 MB / 9.849 GB, free: 33.99 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05197/39.67, allocations: 15.56 MB / 9.864 GB, free: 33.2 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008489/39.67, allocations: 10.28 kB / 9.864 GB, free: 33.2 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005195/39.68, allocations: 330.9 kB / 9.864 GB, free: 33.2 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005556/39.68, allocations: 369.7 kB / 9.865 GB, free: 33.18 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04297/39.72, allocations: 19.66 MB / 9.884 GB, free: 33.12 MB / 0.948 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.1764/39.9, allocations: 79.5 MB / 9.962 GB, free: 15.7 MB / 0.9637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02438/39.92, allocations: 11.96 MB / 9.973 GB, free: 15.23 MB / 0.9637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01694/39.94, allocations: 9.156 MB / 9.982 GB, free: 15.16 MB / 0.9637 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 evalFunc (simulation): time 0.104/40.04, allocations: 33.92 MB / 10.02 GB, free: 6.531 MB / 0.9637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.03094/40.08, allocations: 9.281 MB / 10.02 GB, free: 6.359 MB / 0.9637 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.07066/40.15, allocations: 15.09 MB / 10.04 GB, free: 6.078 MB / 0.9637 GB Notification: Performance of pre-optimization done (n=614): time 6.648e-05/40.15, allocations: 0 / 10.04 GB, free: 6.078 MB / 0.9637 GB Notification: Performance of matching and sorting (n=908): time 2.008/42.15, allocations: 230 MB / 10.26 GB, free: 79.76 MB / 0.9949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.09499/42.25, allocations: 46.16 MB / 10.31 GB, free: 70.33 MB / 0.9949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03149/42.28, allocations: 14.2 MB / 10.32 GB, free: 69.59 MB / 0.9949 GB Notification: Performance of collectPreVariables (initialization): time 0.004807/42.29, allocations: 242.7 kB / 10.32 GB, free: 69.56 MB / 0.9949 GB Notification: Performance of collectInitialEqns (initialization): time 0.009582/42.3, allocations: 7.235 MB / 10.33 GB, free: 69.28 MB / 0.9949 GB Notification: Performance of collectInitialBindings (initialization): time 0.01134/42.31, allocations: 3.238 MB / 10.33 GB, free: 68.05 MB / 0.9949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00682/42.31, allocations: 205.2 kB / 10.33 GB, free: 68.05 MB / 0.9949 GB Notification: Performance of setup shared object (initialization): time 0.001064/42.31, allocations: 0.7453 MB / 10.33 GB, free: 67.72 MB / 0.9949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02661/42.34, allocations: 18.32 MB / 10.35 GB, free: 67.7 MB / 0.9949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03033/42.37, allocations: 21.32 MB / 10.37 GB, free: 64.53 MB / 0.9949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0304/42.4, allocations: 19.7 MB / 10.39 GB, free: 64.23 MB / 0.9949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001436/42.4, allocations: 15.69 kB / 10.39 GB, free: 64.23 MB / 0.9949 GB Notification: Performance of matching and sorting (n=1424) (initialization): time 0.6314/43.03, allocations: 146.3 MB / 10.53 GB, free: 7.305 MB / 0.9949 GB Notification: Performance of prepare postOptimizeDAE: time 0.9856/44.02, allocations: 35.42 MB / 10.57 GB, free: 69.72 MB / 1.011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004139/44.02, allocations: 51.62 kB / 10.57 GB, free: 69.72 MB / 1.011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6183/44.64, allocations: 146.9 MB / 10.71 GB, free: 69.62 MB / 1.011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01992/44.66, allocations: 3.675 MB / 10.72 GB, free: 69.62 MB / 1.011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1364/44.79, allocations: 73.19 MB / 10.79 GB, free: 62.28 MB / 1.011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1192/44.91, allocations: 7.293 MB / 10.8 GB, free: 61.11 MB / 1.011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007776/44.92, allocations: 1.436 MB / 10.8 GB, free: 61.11 MB / 1.011 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/44.92, allocations: 3.938 kB / 10.8 GB, free: 61.11 MB / 1.011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 1.685/46.61, allocations: 145.1 MB / 10.94 GB, free: 101.4 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002713/46.61, allocations: 51.94 kB / 10.94 GB, free: 101.4 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6306/47.24, allocations: 147.3 MB / 11.08 GB, free: 101.3 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01856/47.26, allocations: 3.649 MB / 11.09 GB, free: 101.3 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1538/47.41, allocations: 76.99 MB / 11.16 GB, free: 96.72 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.121/47.53, allocations: 7.262 MB / 11.17 GB, free: 95.73 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007782/47.54, allocations: 1.403 MB / 11.17 GB, free: 95.73 MB / 1.042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 231 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,booleanToInteger.u,booleanToInteger.y,$PRE.stepPump.pulseStart,stepPump.pulseStart,$PRE.stepValve.T_start,stepValve.T_start,$PRE.stepValve.count,stepValve.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1064): * Single equations (assignments): 1046 * Array equations: 6 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 8 {1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 2 {14 90,14 90} Notification: Performance of prepare postOptimizeDAE: time 0.01051/47.55, allocations: 0.6656 MB / 11.17 GB, free: 95.62 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008569/47.56, allocations: 1.488 MB / 11.17 GB, free: 95.62 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.475/49.03, allocations: 132.9 MB / 11.3 GB, free: 109.3 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.227/49.26, allocations: 69.46 MB / 11.37 GB, free: 108.8 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001126/49.26, allocations: 33.27 kB / 11.37 GB, free: 108.8 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2112/49.47, allocations: 68.64 MB / 11.44 GB, free: 108.1 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3148/49.79, allocations: 154.2 MB / 11.59 GB, free: 100.5 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.257e-05/49.79, allocations: 1.531 kB / 11.59 GB, free: 100.5 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01256/49.8, allocations: 2.11 MB / 11.59 GB, free: 100.5 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363/51.16, allocations: 97.48 MB / 11.68 GB, free: 115.7 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004855/51.17, allocations: 0.656 MB / 11.68 GB, free: 115.7 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1561/51.32, allocations: 77 MB / 11.76 GB, free: 106.8 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.09036/51.41, allocations: 39.69 MB / 11.8 GB, free: 99.83 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2561/51.67, allocations: 99.31 MB / 11.9 GB, free: 98.28 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.03487/51.7, allocations: 6.708 MB / 11.9 GB, free: 97.34 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01255/51.72, allocations: 224.8 kB / 11.9 GB, free: 97.34 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.07204/51.79, allocations: 3.894 MB / 11.91 GB, free: 96.68 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006314/51.8, allocations: 0.981 MB / 11.91 GB, free: 96.67 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004007/51.8, allocations: 0.7234 MB / 11.91 GB, free: 96.67 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.02528/51.82, allocations: 10.87 MB / 11.92 GB, free: 96.16 MB / 1.042 GB Notification: Performance of sort global known variables: time 6.61e-07/51.82, allocations: 1.594 kB / 11.92 GB, free: 96.16 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.1338/51.96, allocations: 50.98 MB / 11.97 GB, free: 63.55 MB / 1.042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 74 ($STATESET1.x[32],$STATESET1.x[31],$STATESET1.x[30],$STATESET1.x[29],$STATESET1.x[28],$STATESET1.x[27],$STATESET1.x[26],$STATESET1.x[25],$STATESET1.x[24],$STATESET1.x[23],$STATESET1.x[22],$STATESET1.x[21],$STATESET1.x[20],$STATESET1.x[19],$STATESET1.x[18],$STATESET1.x[17],$STATESET1.x[16],$STATESET1.x[15],$STATESET1.x[14],$STATESET1.x[13],$STATESET1.x[12],$STATESET1.x[11],$STATESET1.x[10],$STATESET1.x[9],$STATESET1.x[8],$STATESET1.x[7],$STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],pmpSouth.vol.dynBal.U,pmpSouth.filter.s[1],pmpNorth.vol.dynBal.U,pmpNorth.filter.s[1],valSouth1[1].filter.s[1],valSouth1[2].filter.s[1],valSouth1[3].filter.s[1],valSouth1[4].filter.s[1],valSouth2[1].filter.s[1],valSouth2[2].filter.s[1],valSouth2[3].filter.s[1],valSouth2[4].filter.s[1],valSouth2[5].filter.s[1],valSouth2[6].filter.s[1],valSouth2[7].filter.s[1],valSouth2[8].filter.s[1],valNorth1[1].filter.s[1],valNorth1[2].filter.s[1],valNorth1[3].filter.s[1],valNorth1[4].filter.s[1],valNorth2[1].filter.s[1],valNorth2[2].filter.s[1],valNorth2[3].filter.s[1],valNorth2[4].filter.s[1],valNorth2[5].filter.s[1],valNorth2[6].filter.s[1],valNorth2[7].filter.s[1],valNorth2[8].filter.s[1],valSouth.vol.dynBal.U,valSouth.filter.s[1],valNorth.vol.dynBal.U,valNorth.filter.s[1],spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,pumpHea.filter.s[1],valHea.filter.s[1],valCoo.filter.s[1],spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U,pumpCoo.filter.s[1]) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanToInteger.u,booleanToInteger.y,stepPump.pulseStart,stepValve.T_start,stepValve.count) * Number of discrete states: 1 (stepValve.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (667): * Single equations (assignments): 644 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 2 {14 89,42 208} Notification: Performance of Backend phase and start with SimCode phase: time 1.253/53.21, allocations: 108.4 MB / 12.07 GB, free: 109.8 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.1395/53.35, allocations: 76.79 MB / 12.15 GB, free: 108.5 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 1.325e-05/53.35, allocations: 0 / 12.15 GB, free: 108.5 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.09895/53.45, allocations: 50.44 MB / 12.2 GB, free: 105.6 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05345/53.5, allocations: 7.406 MB / 12.21 GB, free: 105.3 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1638/53.67, allocations: 51.91 MB / 12.26 GB, free: 97.53 MB / 1.042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02044/53.69, allocations: 10.43 MB / 12.27 GB, free: 96.12 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 0.05518/53.74, allocations: 11.37 MB / 12.28 GB, free: 95.23 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02191/53.77, allocations: 9.837 MB / 12.29 GB, free: 95.21 MB / 1.042 GB Notification: Performance of SimCode: time 1.192e-06/53.77, allocations: 0 / 12.29 GB, free: 95.21 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.071/56.84, allocations: 0.82 GB / 13.11 GB, free: 110.1 MB / 1.104 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001335/56.84, allocations: 213.2 kB / 13.11 GB, free: 109.9 MB / 1.104 GB Notification: Performance of buildModelFMU: Generate platform static: time 44.61/101.4, allocations: 0 / 13.11 GB, free: 109.9 MB / 1.104 GB (rm -f IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified2.pipe ; mkfifo IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified2.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified2.pipe >> ../files/IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Examples_FlowSystem_Simplified2_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Examples_FlowSystem_Simplified2.fmu > IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified2.pipe 2>&1)