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 1.978/1.978, allocations: 387.4 MB / 394.9 MB, free: 13.4 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.0009736/0.0009734, allocations: 176.8 kB / 487.4 MB, free: 5.062 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.292/1.292, allocations: 221.5 MB / 0.7824 GB, free: 0.9453 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009135/0.0009135, allocations: 95.83 kB / 0.9219 GB, free: 2.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.94e-05/1.94e-05, allocations: 6.625 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.217, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.315/4.532, allocations: 1.948 GB / 3.153 GB, free: 341.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001979/4.532, allocations: 93.78 kB / 3.154 GB, free: 341.2 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 2.706/7.237, allocations: 0.8032 GB / 3.957 GB, free: 233.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.202e-06/7.237, allocations: 1.156 kB / 3.957 GB, free: 233.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001558/7.238, allocations: 44.17 kB / 3.957 GB, free: 233.5 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.0038/7.241, allocations: 1.824 MB / 3.959 GB, free: 233.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/7.241, allocations: 12.89 kB / 3.959 GB, free: 233 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002977/7.244, allocations: 0.5068 MB / 3.959 GB, free: 233 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003704/7.248, allocations: 1.849 MB / 3.961 GB, free: 232.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.571e-05/7.248, allocations: 30.58 kB / 3.961 GB, free: 232.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/7.248, allocations: 65.25 kB / 3.961 GB, free: 232.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001252/7.25, allocations: 0.8147 MB / 3.962 GB, free: 232.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/7.251, allocations: 0.9728 MB / 3.963 GB, free: 232.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.36e-05/7.251, allocations: 0.6562 kB / 3.963 GB, free: 232.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.186e-05/7.251, allocations: 4.672 kB / 3.963 GB, free: 232.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.154e-05/7.251, allocations: 36.84 kB / 3.963 GB, free: 232.5 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.006026/7.257, allocations: 4.796 MB / 3.968 GB, free: 230.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/7.259, allocations: 0.8806 MB / 3.968 GB, free: 230.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005355/7.259, allocations: 377.3 kB / 3.969 GB, free: 230.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001928/7.259, allocations: 109 kB / 3.969 GB, free: 230.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006645/7.26, allocations: 425.1 kB / 3.969 GB, free: 230 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006317/7.261, allocations: 66.55 kB / 3.969 GB, free: 230 MB / 1.151 GB Notification: Performance of pre-optimization done (n=72): time 3.346e-06/7.261, allocations: 7.625 kB / 3.969 GB, free: 230 MB / 1.151 GB Notification: Performance of matching and sorting (n=72): time 0.001997/7.263, allocations: 0.869 MB / 3.97 GB, free: 229.9 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/7.263, allocations: 111.8 kB / 3.97 GB, free: 229.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00135/7.264, allocations: 0.8852 MB / 3.971 GB, free: 229.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.461e-05/7.264, allocations: 27.8 kB / 3.971 GB, free: 229.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006057/7.265, allocations: 0.6503 MB / 3.972 GB, free: 229.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002303/7.265, allocations: 242.9 kB / 3.972 GB, free: 229.3 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.078e-05/7.265, allocations: 1.094 kB / 3.972 GB, free: 229.3 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.29e-05/7.265, allocations: 340.7 kB / 3.972 GB, free: 229 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005063/7.266, allocations: 300 kB / 3.973 GB, free: 229 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006397/7.266, allocations: 0.5596 MB / 3.973 GB, free: 228.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008651/7.267, allocations: 402.3 kB / 3.974 GB, free: 228.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.012e-06/7.267, allocations: 5.062 kB / 3.974 GB, free: 228.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002034/7.269, allocations: 1.023 MB / 3.975 GB, free: 228.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004249/7.27, allocations: 2.068 MB / 3.977 GB, free: 226.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/7.27, allocations: 8.812 kB / 3.977 GB, free: 226.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003589/7.27, allocations: 97.34 kB / 3.977 GB, free: 226.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/7.271, allocations: 225.2 kB / 3.977 GB, free: 226.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007246/7.272, allocations: 1.275 MB / 3.978 GB, free: 225.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001342/7.273, allocations: 98.3 kB / 3.978 GB, free: 225.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/7.273, allocations: 55.78 kB / 3.978 GB, free: 225.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/7.273, allocations: 4.781 kB / 3.978 GB, free: 225.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001802/7.275, allocations: 0.8332 MB / 3.979 GB, free: 225.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/7.275, allocations: 6.109 kB / 3.979 GB, free: 225.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004076/7.276, allocations: 105.4 kB / 3.979 GB, free: 225.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008313/7.276, allocations: 207.2 kB / 3.979 GB, free: 225.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003885/7.28, allocations: 2.598 MB / 3.982 GB, free: 223.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001503/7.282, allocations: 96.56 kB / 3.982 GB, free: 223.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.316e-05/7.282, allocations: 49.53 kB / 3.982 GB, free: 223.7 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.0003062/7.282, allocations: 128.5 kB / 3.982 GB, free: 223.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001969/7.282, allocations: 129.9 kB / 3.982 GB, free: 223.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001943/7.284, allocations: 0.8681 MB / 3.983 GB, free: 223.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/7.284, allocations: 7.531 kB / 3.983 GB, free: 223.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/7.284, allocations: 0.5625 kB / 3.983 GB, free: 223.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00136/7.286, allocations: 0.78 MB / 3.984 GB, free: 223.2 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.004202/7.29, allocations: 2.116 MB / 3.986 GB, free: 222.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/7.29, allocations: 1.125 kB / 3.986 GB, free: 222.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008686/7.291, allocations: 177.2 kB / 3.986 GB, free: 222.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001651/7.291, allocations: 57.94 kB / 3.986 GB, free: 222.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.655e-05/7.291, allocations: 17 kB / 3.986 GB, free: 222.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005375/7.292, allocations: 1.203 MB / 3.987 GB, free: 221.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/7.292, allocations: 1.438 kB / 3.987 GB, free: 221.7 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002245/7.294, allocations: 1.379 MB / 3.989 GB, free: 221.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006387/7.295, allocations: 278.5 kB / 3.989 GB, free: 221.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/7.295, allocations: 9.125 kB / 3.989 GB, free: 221.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008894/7.296, allocations: 94.84 kB / 3.989 GB, free: 221.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/7.296, allocations: 58.22 kB / 3.989 GB, free: 221.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.961e-05/7.296, allocations: 26.78 kB / 3.989 GB, free: 221.1 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001031/7.297, allocations: 0.6705 MB / 3.99 GB, free: 221 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.2e-07/7.297, allocations: 0 / 3.99 GB, free: 221 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003379/7.3, allocations: 0.9639 MB / 3.991 GB, free: 220.9 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.004283/7.305, allocations: 2.843 MB / 3.994 GB, free: 220.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002972/7.308, allocations: 1.484 MB / 3.995 GB, free: 219.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/7.308, allocations: 1 kB / 3.995 GB, free: 219.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005731/7.308, allocations: 372.7 kB / 3.995 GB, free: 219.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002796/7.311, allocations: 0.5768 MB / 3.996 GB, free: 219.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003907/7.315, allocations: 2.018 MB / 3.998 GB, free: 219.3 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007464/7.316, allocations: 1.309 MB / 3.999 GB, free: 218.5 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001932/7.318, allocations: 479.1 kB / 4 GB, free: 218.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002241/7.318, allocations: 85.48 kB / 4 GB, free: 218.5 MB / 1.151 GB Notification: Performance of SimCode: time 2.244e-06/7.318, allocations: 0 / 4 GB, free: 218.5 MB / 1.151 GB Notification: Performance of Templates: time 0.05767/7.376, allocations: 39.41 MB / 4.038 GB, free: 217.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