Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Movers.Examples.ClosedLoop_y.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 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: translateModel(Buildings.Fluid.Movers.Examples.ClosedLoop_y,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conPID.u_s|conPID.u_m|conPID.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Movers.Examples.ClosedLoop_y") translateModel(Buildings.Fluid.Movers.Examples.ClosedLoop_y,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conPID.u_s|conPID.u_m|conPID.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Movers.Examples.ClosedLoop_y") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009425/0.0009424, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009107/0.0009106, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 223.2 MB / 239.9 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.52/2.52, allocations: 390.3 MB / 0.6653 GB, free: 2.91 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003147/0.0003148, allocations: 8 kB / 0.8145 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7337/0.7341, allocations: 142.3 MB / 0.9535 GB, free: 8.34 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Movers.Examples.ClosedLoop_y): time 0.181/0.9151, allocations: 170.2 MB / 1.12 GB, free: 5.617 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02627/0.9414, allocations: 12.14 MB / 1.132 GB, free: 9.449 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002462/0.9439, allocations: 43.69 kB / 1.132 GB, free: 9.406 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.00324/0.9472, allocations: 0.7271 MB / 1.132 GB, free: 8.676 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.009536/0.9567, allocations: 2.125 MB / 1.134 GB, free: 6.547 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.006336/0.9631, allocations: 1.386 MB / 1.136 GB, free: 5.176 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.005797/0.9689, allocations: 2.124 MB / 1.138 GB, free: 3.051 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002345/0.9713, allocations: 1.045 MB / 1.139 GB, free: 1.98 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003761/0.9751, allocations: 1.46 MB / 1.14 GB, free: 0.5156 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001303/0.9764, allocations: 0.739 MB / 1.141 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001672/0.9766, allocations: 60 kB / 1.141 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002724/0.9793, allocations: 1.158 MB / 1.142 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004753/0.9798, allocations: 454.6 kB / 1.143 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0004729/0.9803, allocations: 356.8 kB / 1.143 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002694/0.983, allocations: 2.135 MB / 1.145 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.983, allocations: 0 / 1.145 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.485e-06/0.983, allocations: 0 / 1.145 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.187e-05/0.983, allocations: 0 / 1.145 GB, free: 11.61 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.003561/0.9866, allocations: 1.872 MB / 1.147 GB, free: 9.684 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.9866, allocations: 8.031 kB / 1.147 GB, free: 9.676 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00315/0.9898, allocations: 0.5364 MB / 1.147 GB, free: 9.137 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00282/0.9926, allocations: 1.339 MB / 1.149 GB, free: 7.742 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.994e-05/0.9927, allocations: 78 kB / 1.149 GB, free: 7.668 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001681/0.9929, allocations: 112 kB / 1.149 GB, free: 7.559 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002051/0.995, allocations: 1.158 MB / 1.15 GB, free: 6.367 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/0.995, allocations: 0 / 1.15 GB, free: 6.367 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.707e-05/0.9951, allocations: 40 kB / 1.15 GB, free: 6.328 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.902e-05/0.9951, allocations: 41.95 kB / 1.15 GB, free: 6.289 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001874/0.997, allocations: 0.9407 MB / 1.151 GB, free: 5.348 MB / 0.9044 GB 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.006227/1.003, allocations: 4.904 MB / 1.156 GB, free: 120 kB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/1.005, allocations: 0.7894 MB / 1.157 GB, free: 15.32 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 7.968e-05/1.005, allocations: 24.55 kB / 1.157 GB, free: 15.3 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009335/1.006, allocations: 478.8 kB / 1.157 GB, free: 14.82 MB / 0.92 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004679/1.007, allocations: 75.34 kB / 1.157 GB, free: 14.75 MB / 0.92 GB Notification: Performance of pre-optimization done (n=69): time 2.715e-06/1.007, allocations: 0 / 1.157 GB, free: 14.75 MB / 0.92 GB Notification: Performance of matching and sorting (n=69): time 0.002996/1.01, allocations: 1.273 MB / 1.158 GB, free: 13.45 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/1.01, allocations: 63.95 kB / 1.158 GB, free: 13.37 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001501/1.011, allocations: 1.148 MB / 1.16 GB, free: 12.21 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 7.806e-05/1.011, allocations: 41.7 kB / 1.16 GB, free: 12.16 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005673/1.012, allocations: 0.6535 MB / 1.16 GB, free: 11.5 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002236/1.012, allocations: 244.5 kB / 1.161 GB, free: 11.26 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.705e-05/1.012, allocations: 16 kB / 1.161 GB, free: 11.24 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001454/1.012, allocations: 337.9 kB / 1.161 GB, free: 10.91 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007147/1.013, allocations: 341.8 kB / 1.161 GB, free: 10.57 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008906/1.014, allocations: 0.5752 MB / 1.162 GB, free: 9.902 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008061/1.015, allocations: 436.7 kB / 1.162 GB, free: 9.469 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-06/1.015, allocations: 0 / 1.162 GB, free: 9.469 MB / 0.92 GB Notification: Performance of matching and sorting (n=105) (initialization): time 0.002013/1.017, allocations: 1.134 MB / 1.163 GB, free: 8.316 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009704/1.018, allocations: 2.153 MB / 1.165 GB, free: 6.027 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.955e-05/1.018, allocations: 8 kB / 1.165 GB, free: 6.02 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005788/1.018, allocations: 80.78 kB / 1.165 GB, free: 5.938 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001406/1.02, allocations: 219.7 kB / 1.166 GB, free: 5.723 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00101/1.021, allocations: 1.216 MB / 1.167 GB, free: 4.457 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001671/1.023, allocations: 103.8 kB / 1.167 GB, free: 4.355 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/1.023, allocations: 43.98 kB / 1.167 GB, free: 4.312 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/1.023, allocations: 8 kB / 1.167 GB, free: 4.305 MB / 0.92 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003031/1.026, allocations: 1.056 MB / 1.168 GB, free: 3.238 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/1.026, allocations: 8 kB / 1.168 GB, free: 3.23 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007661/1.027, allocations: 153.1 kB / 1.168 GB, free: 3.078 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/1.028, allocations: 195.8 kB / 1.168 GB, free: 2.887 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006633/1.034, allocations: 2.907 MB / 1.171 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001973/1.036, allocations: 103.8 kB / 1.171 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/1.037, allocations: 43.95 kB / 1.171 GB, free: 15.62 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.y.T_start,y.T_start,$PRE.y.count,y.count,conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 94 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.001099/1.038, allocations: 460.8 kB / 1.172 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000269/1.038, allocations: 138.3 kB / 1.172 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003225/1.041, allocations: 0.968 MB / 1.173 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/1.041, allocations: 8 kB / 1.173 GB, free: 14.03 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/1.041, allocations: 4 kB / 1.173 GB, free: 14.03 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002702/1.044, allocations: 0.8676 MB / 1.174 GB, free: 13.12 MB / 0.9356 GB 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 postOpt removeSimpleEquations (simulation): time 0.005745/1.05, allocations: 2.274 MB / 1.176 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/1.05, allocations: 4 kB / 1.176 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001149/1.051, allocations: 159.8 kB / 1.176 GB, free: 10.6 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003542/1.051, allocations: 84.95 kB / 1.176 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.019e-05/1.051, allocations: 23.98 kB / 1.176 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009373/1.052, allocations: 1.197 MB / 1.177 GB, free: 9.242 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/1.052, allocations: 4 kB / 1.177 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004301/1.057, allocations: 1.51 MB / 1.179 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007938/1.058, allocations: 283.4 kB / 1.179 GB, free: 7.355 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002207/1.058, allocations: 12 kB / 1.179 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/1.059, allocations: 95.78 kB / 1.179 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/1.059, allocations: 48.48 kB / 1.179 GB, free: 7.203 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.764e-05/1.059, allocations: 27.98 kB / 1.179 GB, free: 7.176 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001667/1.061, allocations: 0.7875 MB / 1.18 GB, free: 6.387 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.3e-07/1.061, allocations: 0 / 1.18 GB, free: 6.387 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.003148/1.064, allocations: 0.7834 MB / 1.181 GB, free: 5.602 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (fan.vol.dynBal.medium.Xi[1],fan.vol.dynBal.U,fan.vol.dynBal.m,fan.filter.s[1],fan.filter.s[2],conPID.I.y) * Number of discrete variables: 3 ($whenCondition1,y.T_start,y.count) * Number of discrete states: 1 (y.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001302/1.065, allocations: 413.5 kB / 1.181 GB, free: 5.195 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.004614/1.07, allocations: 1.616 MB / 1.183 GB, free: 3.543 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 9.288e-06/1.07, allocations: 4 kB / 1.183 GB, free: 3.539 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0009734/1.071, allocations: 419.8 kB / 1.183 GB, free: 3.125 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002959/1.074, allocations: 0.6229 MB / 1.184 GB, free: 2.508 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005333/1.079, allocations: 3.146 MB / 1.187 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001158/1.081, allocations: 1.308 MB / 1.188 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001533/1.082, allocations: 343.2 kB / 1.188 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003353/1.082, allocations: 111.4 kB / 1.189 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of SimCode: time 8.62e-07/1.082, allocations: 0 / 1.189 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of Templates: time 0.04698/1.129, allocations: 27.06 MB / 1.215 GB, free: 2.824 MB / 0.9669 GB make -j1 -f Buildings_9_Buildings.Fluid.Movers.Examples.ClosedLoop_y.makefile (rm -f Buildings_9_Buildings.Fluid.Movers.Examples.ClosedLoop_y.pipe ; mkfifo Buildings_9_Buildings.Fluid.Movers.Examples.ClosedLoop_y.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Movers.Examples.ClosedLoop_y.pipe >> ../files/Buildings_9_Buildings.Fluid.Movers.Examples.ClosedLoop_y.sim & ./Buildings_9_Buildings.Fluid.Movers.Examples.ClosedLoop_y -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Movers.Examples.ClosedLoop_y.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Movers.Examples.ClosedLoop_y_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Movers_Examples_ClosedLoop_y.csv","../files/Buildings_9_Buildings.Fluid.Movers.Examples.ClosedLoop_y.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches