Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.DXSystems.Cooling.BaseClasses.Examples.InputPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SHR.y|EIR.y|pwr.P|pwr.QSen_flow|Q_flow.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower") translateModel(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SHR.y|EIR.y|pwr.P|pwr.QSen_flow|Q_flow.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007405/0.007405, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.001689/0.001689, allocations: 189.3 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.163/3.163, allocations: 472.6 MB / 0.7453 GB, free: 4.621 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 63.91 kB / 1.069 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3704/0.3716, allocations: 159.9 MB / 1.226 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower): time 0.003345/0.375, allocations: 1.759 MB / 1.227 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0001822/0.3752, allocations: 79.73 kB / 1.227 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.029e-05/0.3753, allocations: 0 / 1.227 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.564e-05/0.3754, allocations: 15.86 kB / 1.227 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.608e-05/0.3755, allocations: 15.81 kB / 1.227 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001128/0.3756, allocations: 31.95 kB / 1.227 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001602/0.3758, allocations: 103.7 kB / 1.228 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001948/0.376, allocations: 61.06 kB / 1.228 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.926e-05/0.376, allocations: 43.78 kB / 1.228 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.446e-05/0.3761, allocations: 51.77 kB / 1.228 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.552e-05/0.3761, allocations: 12 kB / 1.228 GB, free: 7.02 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.915e-05/0.3762, allocations: 8 kB / 1.228 GB, free: 7.012 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.756e-05/0.3762, allocations: 23.92 kB / 1.228 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.725e-05/0.3763, allocations: 47.73 kB / 1.228 GB, free: 6.941 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001855/0.3765, allocations: 123.5 kB / 1.228 GB, free: 6.82 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3765, allocations: 0 / 1.228 GB, free: 6.82 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3765, allocations: 0 / 1.228 GB, free: 6.82 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.059e-05/0.3765, allocations: 0 / 1.228 GB, free: 6.82 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0009316/0.3774, allocations: 430.9 kB / 1.228 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.3775, allocations: 8.031 kB / 1.228 GB, free: 6.34 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.869e-05/0.3775, allocations: 16.84 kB / 1.228 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002107/0.3778, allocations: 202.6 kB / 1.229 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.3778, allocations: 8.375 kB / 1.229 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.021e-05/0.3778, allocations: 8.375 kB / 1.229 GB, free: 6.074 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003813/0.3782, allocations: 122.2 kB / 1.229 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.3782, allocations: 192 / 1.229 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.3782, allocations: 3.938 kB / 1.229 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.3782, allocations: 3.984 kB / 1.229 GB, free: 5.941 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004381/0.3787, allocations: 127.8 kB / 1.229 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005236/0.3792, allocations: 400.4 kB / 1.229 GB, free: 5.375 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003402/0.3796, allocations: 82.52 kB / 1.229 GB, free: 5.285 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002158/0.3798, allocations: 64.92 kB / 1.229 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.586e-05/0.3798, allocations: 0 / 1.229 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.325e-05/0.3798, allocations: 34.56 kB / 1.229 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 7.92e-07/0.3799, allocations: 0 / 1.229 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0007401/0.3806, allocations: 205.5 kB / 1.23 GB, free: 4.969 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.3806, allocations: 51.41 kB / 1.23 GB, free: 4.906 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.3808, allocations: 125.8 kB / 1.23 GB, free: 4.773 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.3808, allocations: 25.7 kB / 1.23 GB, free: 4.742 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.3809, allocations: 104 kB / 1.23 GB, free: 4.637 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.993e-05/0.3809, allocations: 23.8 kB / 1.23 GB, free: 4.613 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.245e-05/0.381, allocations: 17.72 kB / 1.23 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002026/0.3812, allocations: 318.8 kB / 1.23 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.3814, allocations: 55.88 kB / 1.23 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.3816, allocations: 47.95 kB / 1.23 GB, free: 4.168 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000375/0.382, allocations: 108.8 kB / 1.23 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.382, allocations: 0 / 1.23 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004351/0.3824, allocations: 145.5 kB / 1.231 GB, free: 3.91 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.3825, allocations: 12 kB / 1.231 GB, free: 3.898 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.3825, allocations: 0 / 1.231 GB, free: 3.898 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.3825, allocations: 3.938 kB / 1.231 GB, free: 3.895 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.3826, allocations: 27.97 kB / 1.231 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.3826, allocations: 0 / 1.231 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.3828, allocations: 19.97 kB / 1.231 GB, free: 3.848 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.3828, allocations: 0 / 1.231 GB, free: 3.848 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.607e-05/0.3829, allocations: 118.4 kB / 1.231 GB, free: 3.723 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.393e-05/0.3829, allocations: 7.953 kB / 1.231 GB, free: 3.715 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.012e-05/0.3829, allocations: 12.38 kB / 1.231 GB, free: 3.699 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.3829, allocations: 3.938 kB / 1.231 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.3829, allocations: 0 / 1.231 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.383, allocations: 3.938 kB / 1.231 GB, free: 3.691 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002058/0.3832, allocations: 209.5 kB / 1.231 GB, free: 3.438 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.3832, allocations: 0 / 1.231 GB, free: 3.438 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001335/0.3833, allocations: 28.41 kB / 1.231 GB, free: 3.41 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3833, allocations: 4 kB / 1.231 GB, free: 3.406 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.3833, allocations: 0 / 1.231 GB, free: 3.406 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.3833, allocations: 7.938 kB / 1.231 GB, free: 3.398 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3833, allocations: 0 / 1.231 GB, free: 3.398 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004836/0.3838, allocations: 243.4 kB / 1.231 GB, free: 3.145 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.028e-05/0.3839, allocations: 81.09 kB / 1.231 GB, free: 3.047 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.3839, allocations: 4 kB / 1.231 GB, free: 3.043 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001338/0.384, allocations: 27.84 kB / 1.231 GB, free: 3.016 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.632e-05/0.3841, allocations: 7.984 kB / 1.231 GB, free: 3.008 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.3841, allocations: 0 / 1.231 GB, free: 3.008 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.223e-05/0.3842, allocations: 110 kB / 1.231 GB, free: 2.902 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3842, allocations: 0 / 1.231 GB, free: 2.902 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002507/0.3845, allocations: 23.95 kB / 1.231 GB, free: 2.879 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001154/0.3846, allocations: 95.25 kB / 1.232 GB, free: 2.777 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004693/0.3851, allocations: 111.9 kB / 1.232 GB, free: 2.668 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3851, allocations: 7.938 kB / 1.232 GB, free: 2.66 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002118/0.3853, allocations: 67.88 kB / 1.232 GB, free: 2.594 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.3856, allocations: 7.906 kB / 1.232 GB, free: 2.586 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004463/0.3861, allocations: 198.3 kB / 1.232 GB, free: 2.363 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.3864, allocations: 0.7002 MB / 1.233 GB, free: 1.637 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.77e-05/0.3864, allocations: 3.984 kB / 1.233 GB, free: 1.633 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.008e-05/0.3865, allocations: 11.44 kB / 1.233 GB, free: 1.621 MB / 0.9825 GB Notification: Performance of SimCode: time 3.9e-07/0.3865, allocations: 0 / 1.233 GB, free: 1.621 MB / 0.9825 GB Notification: Performance of Templates: time 0.003529/0.39, allocations: 1.085 MB / 1.234 GB, free: 0.5469 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower.makefile (rm -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower.sim & ./Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_InputPower.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.InputPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches