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.001665/0.001665, allocations: 180.7 kB / 7.649 MB, free: 1.395 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.77/0.77, allocations: 133.6 MB / 141.6 MB, free: 2.895 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.856/1.856, allocations: 221.5 MB / 395.4 MB, free: 10.79 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.001119/0.001119, allocations: 101.8 kB / 478.2 MB, free: 1.312 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.632e-05/1.633e-05, allocations: 0 / 0.5535 GB, free: 8.977 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4732/0.4733, allocations: 82.31 MB / 0.6339 GB, free: 40.89 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8903/1.364, allocations: 423.5 MB / 1.048 GB, free: 10.58 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002423/1.364, allocations: 98.56 kB / 1.048 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 38.41/39.78, allocations: 8.716 GB / 9.763 GB, free: 73.6 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.533e-06/39.78, allocations: 0 / 9.763 GB, free: 73.6 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.003853/39.78, allocations: 436.5 kB / 9.764 GB, free: 73.5 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.05435/39.84, allocations: 13.5 MB / 9.777 GB, free: 67.55 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/39.84, allocations: 12.16 kB / 9.777 GB, free: 67.55 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01489/39.85, allocations: 2.192 MB / 9.779 GB, free: 66.57 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06616/39.92, allocations: 21.55 MB / 9.8 GB, free: 63.82 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006146/39.92, allocations: 255 kB / 9.8 GB, free: 63.82 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005647/39.92, allocations: 0.5874 MB / 9.801 GB, free: 63.8 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03263/39.96, allocations: 19.63 MB / 9.82 GB, free: 63.77 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03829/40, allocations: 14.43 MB / 9.834 GB, free: 62.57 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004311/40, allocations: 25.94 kB / 9.834 GB, free: 62.56 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003571/40, allocations: 7.094 kB / 9.834 GB, free: 62.56 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003017/40, allocations: 362.2 kB / 9.835 GB, free: 62.53 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 1.101/41.1, allocations: 78.24 MB / 9.911 GB, free: 82.53 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02306/41.12, allocations: 12.66 MB / 9.923 GB, free: 82.16 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01656/41.14, allocations: 9.429 MB / 9.932 GB, free: 82.11 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 evalFunc (simulation): time 0.08324/41.22, allocations: 33.72 MB / 9.965 GB, free: 73.76 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01695/41.24, allocations: 9.097 MB / 9.974 GB, free: 73.61 MB / 0.948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04724/41.29, allocations: 14.92 MB / 9.989 GB, free: 73.61 MB / 0.948 GB Notification: Performance of pre-optimization done (n=614): time 8.738e-05/41.29, allocations: 0 / 9.989 GB, free: 73.61 MB / 0.948 GB Notification: Performance of matching and sorting (n=616): time 0.662/41.95, allocations: 139.3 MB / 10.12 GB, free: 69.43 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.96e-05/41.95, allocations: 114.9 kB / 10.13 GB, free: 69.36 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03409/41.98, allocations: 13.39 MB / 10.14 GB, free: 68.63 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.004244/41.99, allocations: 39.55 kB / 10.14 GB, free: 68.6 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.01063/42, allocations: 7.292 MB / 10.15 GB, free: 67.39 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.005836/42.01, allocations: 2.099 MB / 10.15 GB, free: 66.3 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003483/42.01, allocations: 0 / 10.15 GB, free: 66.3 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0008503/42.01, allocations: 0.6458 MB / 10.15 GB, free: 65.97 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01277/42.02, allocations: 8.012 MB / 10.16 GB, free: 65.94 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01619/42.04, allocations: 10.77 MB / 10.17 GB, free: 62.73 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01906/42.06, allocations: 9.344 MB / 10.18 GB, free: 61.83 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001212/42.06, allocations: 16 kB / 10.18 GB, free: 61.82 MB / 0.948 GB Notification: Performance of matching and sorting (n=1100) (initialization): time 1.516/43.57, allocations: 123.3 MB / 10.3 GB, free: 80.55 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.00824/43.58, allocations: 35.29 MB / 10.33 GB, free: 59.63 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001994/43.58, allocations: 52.03 kB / 10.33 GB, free: 59.63 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6252/44.21, allocations: 143.4 MB / 10.47 GB, free: 58.55 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01429/44.22, allocations: 2.66 MB / 10.47 GB, free: 58.54 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1392/44.36, allocations: 67.28 MB / 10.54 GB, free: 52.11 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02576/44.39, allocations: 1.048 MB / 10.54 GB, free: 51.71 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00593/44.39, allocations: 0.7944 MB / 10.54 GB, free: 51.46 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/44.39, allocations: 3.938 kB / 10.54 GB, free: 51.46 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 1.61/46, allocations: 120.7 MB / 10.66 GB, free: 116.2 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000255/46, allocations: 52.22 kB / 10.66 GB, free: 116.2 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.632/46.64, allocations: 143.4 MB / 10.8 GB, free: 115.8 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01227/46.65, allocations: 2.634 MB / 10.8 GB, free: 115.8 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1454/46.79, allocations: 69.4 MB / 10.87 GB, free: 112 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02204/46.82, allocations: 1.017 MB / 10.87 GB, free: 112 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004881/46.82, allocations: 0.7518 MB / 10.87 GB, free: 112 MB / 1.01 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 (905): * Single equations (assignments): 891 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 2 * 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: 1 {14 90} Notification: Performance of prepare postOptimizeDAE: time 0.007243/46.83, allocations: 317.1 kB / 10.87 GB, free: 111.8 MB / 1.01 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.5802/47.41, allocations: 118.8 MB / 10.99 GB, free: 19.51 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009473/47.42, allocations: 1.398 MB / 10.99 GB, free: 18.86 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.136/48.55, allocations: 43.84 MB / 11.03 GB, free: 119.5 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000155/48.55, allocations: 72.77 kB / 11.03 GB, free: 119.5 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001525/48.55, allocations: 34.34 kB / 11.03 GB, free: 119.5 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1735/48.73, allocations: 38.71 MB / 11.07 GB, free: 118.8 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2271/48.95, allocations: 58.83 MB / 11.13 GB, free: 114.9 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.762e-05/48.95, allocations: 2.297 kB / 11.13 GB, free: 114.9 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007531/48.96, allocations: 1.188 MB / 11.13 GB, free: 114.9 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1805/49.14, allocations: 40.74 MB / 11.17 GB, free: 114.8 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002498/49.14, allocations: 159.7 kB / 11.17 GB, free: 114.8 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05532/49.2, allocations: 27.51 MB / 11.19 GB, free: 108.9 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.857e-06/49.2, allocations: 5.125 kB / 11.19 GB, free: 108.9 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1822/49.38, allocations: 49.27 MB / 11.24 GB, free: 100.7 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01503/49.4, allocations: 3.28 MB / 11.25 GB, free: 99.55 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008706/49.41, allocations: 74.17 kB / 11.25 GB, free: 99.51 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01619/49.42, allocations: 0.858 MB / 11.25 GB, free: 99.05 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003061/49.43, allocations: 441.6 kB / 11.25 GB, free: 98.83 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002062/49.43, allocations: 265 kB / 11.25 GB, free: 98.66 MB / 1.01 GB Notification: Performance of sorting global known variables: time 0.02374/49.45, allocations: 10.07 MB / 11.26 GB, free: 93.28 MB / 1.01 GB Notification: Performance of sort global known variables: time 4.21e-07/49.45, allocations: 1.766 kB / 11.26 GB, free: 93.28 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.05414/49.51, allocations: 7.905 MB / 11.26 GB, free: 85.92 MB / 1.01 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 74 (pmpSouth.vol.dynBal.U,pmpSouth.filter.s[1],pmpSouth.filter.s[2],pmpNorth.vol.dynBal.U,pmpNorth.filter.s[1],pmpNorth.filter.s[2],valSouth1[1].filter.s[1],valSouth1[1].filter.s[2],valSouth1[2].filter.s[1],valSouth1[2].filter.s[2],valSouth1[3].filter.s[1],valSouth1[3].filter.s[2],valSouth1[4].filter.s[1],valSouth1[4].filter.s[2],valSouth2[1].filter.s[1],valSouth2[1].filter.s[2],valSouth2[2].filter.s[1],valSouth2[2].filter.s[2],valSouth2[3].filter.s[1],valSouth2[3].filter.s[2],valSouth2[4].filter.s[1],valSouth2[4].filter.s[2],valSouth2[5].filter.s[1],valSouth2[5].filter.s[2],valSouth2[6].filter.s[1],valSouth2[6].filter.s[2],valSouth2[7].filter.s[1],valSouth2[7].filter.s[2],valSouth2[8].filter.s[1],valSouth2[8].filter.s[2],valNorth1[1].filter.s[1],valNorth1[1].filter.s[2],valNorth1[2].filter.s[1],valNorth1[2].filter.s[2],valNorth1[3].filter.s[1],valNorth1[3].filter.s[2],valNorth1[4].filter.s[1],valNorth1[4].filter.s[2],valNorth2[1].filter.s[1],valNorth2[1].filter.s[2],valNorth2[2].filter.s[1],valNorth2[2].filter.s[2],valNorth2[3].filter.s[1],valNorth2[3].filter.s[2],valNorth2[4].filter.s[1],valNorth2[4].filter.s[2],valNorth2[5].filter.s[1],valNorth2[5].filter.s[2],valNorth2[6].filter.s[1],valNorth2[6].filter.s[2],valNorth2[7].filter.s[1],valNorth2[7].filter.s[2],valNorth2[8].filter.s[1],valNorth2[8].filter.s[2],valSouth.vol.dynBal.U,valSouth.filter.s[1],valSouth.filter.s[2],valNorth.vol.dynBal.U,valNorth.filter.s[1],valNorth.filter.s[2],spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,pumpHea.filter.s[1],pumpHea.filter.s[2],valHea.filter.s[1],valHea.filter.s[2],valCoo.filter.s[1],valCoo.filter.s[2],spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U,pumpCoo.filter.s[1],pumpCoo.filter.s[2]) * 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 (559): * Single equations (assignments): 537 * 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: 2 * 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: 1 {14 90} Notification: Performance of Backend phase and start with SimCode phase: time 0.193/49.7, allocations: 54.3 MB / 11.32 GB, free: 53.86 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.06784/49.77, allocations: 32.91 MB / 11.35 GB, free: 33.21 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/49.77, allocations: 0 / 11.35 GB, free: 33.21 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.01758/49.78, allocations: 8.488 MB / 11.36 GB, free: 25.47 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04081/49.83, allocations: 7.11 MB / 11.37 GB, free: 20.79 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.619/51.44, allocations: 30.44 MB / 11.39 GB, free: 123.2 MB / 1.011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01686/51.46, allocations: 8.547 MB / 11.4 GB, free: 122.1 MB / 1.011 GB Notification: Performance of simCode: alias equations: time 0.03548/51.5, allocations: 8.034 MB / 11.41 GB, free: 121.9 MB / 1.011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01247/51.51, allocations: 6.913 MB / 11.42 GB, free: 121.9 MB / 1.011 GB Notification: Performance of SimCode: time 8.52e-07/51.51, allocations: 1.594 kB / 11.42 GB, free: 121.9 MB / 1.011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.774/53.28, allocations: 0.5325 GB / 11.95 GB, free: 124.3 MB / 1.026 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001454/53.28, allocations: 153.8 kB / 11.95 GB, free: 124.1 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate platform static: time 36.08/89.36, allocations: 0 / 11.95 GB, free: 124.1 MB / 1.026 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)