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/Buildings 9.1.1-maint.9.1.x/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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.358/2.358, allocations: 387.1 MB / 399.7 MB, free: 9.492 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 180.9 kB / 492.3 MB, free: 0.6328 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.555/1.555, allocations: 221.3 MB / 0.7871 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009716/0.0009717, allocations: 91.83 kB / 0.9267 GB, free: 13.97 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.892e-05/3.894e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3218, allocations: 142.3 MB / 1.212 GB, free: 38.58 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.367/5.689, allocations: 1.948 GB / 3.161 GB, free: 323.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/5.689, allocations: 97 kB / 3.161 GB, free: 323.1 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 3.122/8.811, allocations: 0.8123 GB / 3.973 GB, free: 229.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.412e-06/8.811, allocations: 0 / 3.973 GB, free: 229.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001853/8.811, allocations: 36.09 kB / 3.973 GB, free: 229.3 MB / 1.151 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.00505/8.816, allocations: 1.831 MB / 3.975 GB, free: 228.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/8.817, allocations: 9.344 kB / 3.975 GB, free: 228.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003789/8.82, allocations: 0.5087 MB / 3.975 GB, free: 228.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004499/8.825, allocations: 1.85 MB / 3.977 GB, free: 228.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.955e-05/8.825, allocations: 83.31 kB / 3.977 GB, free: 228.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001723/8.825, allocations: 104.3 kB / 3.977 GB, free: 228.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001921/8.827, allocations: 1.114 MB / 3.978 GB, free: 228.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.692e-05/8.827, allocations: 7.188 kB / 3.978 GB, free: 228.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.671e-05/8.827, allocations: 40.33 kB / 3.978 GB, free: 228.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.872e-05/8.827, allocations: 42.06 kB / 3.978 GB, free: 228.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/8.829, allocations: 0.8302 MB / 3.979 GB, free: 228.1 MB / 1.151 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.006792/8.835, allocations: 4.994 MB / 3.984 GB, free: 225.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/8.837, allocations: 0.8541 MB / 3.985 GB, free: 225.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005375/8.837, allocations: 362.2 kB / 3.985 GB, free: 225.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002038/8.838, allocations: 109.7 kB / 3.985 GB, free: 225.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000669/8.838, allocations: 450.9 kB / 3.986 GB, free: 225.6 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000763/8.839, allocations: 90.3 kB / 3.986 GB, free: 225.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=72): time 3.828e-06/8.839, allocations: 0 / 3.986 GB, free: 225.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=72): time 0.001584/8.841, allocations: 0.7951 MB / 3.987 GB, free: 225.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/8.841, allocations: 118.9 kB / 3.987 GB, free: 225.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001322/8.842, allocations: 0.9967 MB / 3.988 GB, free: 225.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.846e-05/8.842, allocations: 48.14 kB / 3.988 GB, free: 225.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005259/8.843, allocations: 0.6522 MB / 3.988 GB, free: 225 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002093/8.843, allocations: 246.7 kB / 3.989 GB, free: 224.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.845e-05/8.843, allocations: 21.98 kB / 3.989 GB, free: 224.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.111e-05/8.843, allocations: 338.8 kB / 3.989 GB, free: 224.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004364/8.844, allocations: 286.9 kB / 3.989 GB, free: 224.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005813/8.844, allocations: 0.5577 MB / 3.99 GB, free: 224.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005381/8.845, allocations: 391.5 kB / 3.99 GB, free: 224.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/8.845, allocations: 3.953 kB / 3.99 GB, free: 224.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001585/8.846, allocations: 1.036 MB / 3.991 GB, free: 224.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004758/8.847, allocations: 2.077 MB / 3.993 GB, free: 221.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/8.847, allocations: 3.875 kB / 3.993 GB, free: 221.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003248/8.847, allocations: 70.89 kB / 3.993 GB, free: 221.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009503/8.848, allocations: 221.7 kB / 3.994 GB, free: 221.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005943/8.849, allocations: 1.205 MB / 3.995 GB, free: 220.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001352/8.85, allocations: 121.9 kB / 3.995 GB, free: 220.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/8.85, allocations: 52.94 kB / 3.995 GB, free: 220.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/8.85, allocations: 3.281 kB / 3.995 GB, free: 220.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001619/8.852, allocations: 0.934 MB / 3.996 GB, free: 220.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/8.852, allocations: 3.625 kB / 3.996 GB, free: 220.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004143/8.852, allocations: 111 kB / 3.996 GB, free: 220.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007747/8.853, allocations: 203.2 kB / 3.996 GB, free: 220.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003601/8.857, allocations: 2.681 MB / 3.999 GB, free: 219 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001536/8.858, allocations: 114 kB / 3.999 GB, free: 219 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.228e-05/8.858, allocations: 44.52 kB / 3.999 GB, free: 219 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 95 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003039/8.859, allocations: 165 kB / 3.999 GB, free: 218.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002162/8.859, allocations: 131.5 kB / 3.999 GB, free: 218.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002187/8.861, allocations: 0.92 MB / 4 GB, free: 218.8 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-06/8.861, allocations: 7.844 kB / 4 GB, free: 218.8 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/8.861, allocations: 0 / 4 GB, free: 218.8 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001257/8.862, allocations: 0.8051 MB / 4.001 GB, free: 218.6 MB / 1.151 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.005001/8.867, allocations: 2.278 MB / 4.003 GB, free: 218.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/8.867, allocations: 3.156 kB / 4.003 GB, free: 218.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008652/8.868, allocations: 179.5 kB / 4.003 GB, free: 218.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000268/8.869, allocations: 82.11 kB / 4.003 GB, free: 218.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.221e-05/8.869, allocations: 26.8 kB / 4.003 GB, free: 218.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005903/8.869, allocations: 1.198 MB / 4.005 GB, free: 217 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/8.869, allocations: 0 / 4.005 GB, free: 217 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002059/8.871, allocations: 1.409 MB / 4.006 GB, free: 216.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006946/8.872, allocations: 289.1 kB / 4.006 GB, free: 216.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/8.872, allocations: 20.34 kB / 4.006 GB, free: 216.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009019/8.873, allocations: 106.7 kB / 4.006 GB, free: 216.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/8.873, allocations: 49.31 kB / 4.006 GB, free: 216.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.674e-05/8.873, allocations: 37.19 kB / 4.006 GB, free: 216.4 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001109/8.874, allocations: 0.7762 MB / 4.007 GB, free: 216.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/8.874, allocations: 3.781 kB / 4.007 GB, free: 216.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003595/8.878, allocations: 1.047 MB / 4.008 GB, free: 216.2 MB / 1.151 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 64 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004646/8.883, allocations: 2.719 MB / 4.011 GB, free: 215.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002932/8.886, allocations: 1.536 MB / 4.012 GB, free: 215.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/8.886, allocations: 0 / 4.012 GB, free: 215.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006909/8.886, allocations: 384.7 kB / 4.013 GB, free: 215 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003064/8.889, allocations: 0.6254 MB / 4.013 GB, free: 215 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003648/8.893, allocations: 2.074 MB / 4.015 GB, free: 214.5 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006956/8.894, allocations: 1.314 MB / 4.017 GB, free: 213.7 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002003/8.896, allocations: 0.4938 MB / 4.017 GB, free: 213.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002352/8.896, allocations: 81.31 kB / 4.017 GB, free: 213.7 MB / 1.151 GB Notification: Performance of SimCode: time 8.41e-07/8.896, allocations: 1.156 kB / 4.017 GB, free: 213.7 MB / 1.151 GB Notification: Performance of Templates: time 0.08697/8.983, allocations: 61 MB / 4.077 GB, free: 211.4 MB / 1.151 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