Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001064, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007898/0.007899, allocations: 171.7 kB / 16.27 MB, free: 6.652 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.487/1.487, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.998/2.998, allocations: 437.8 MB / 0.7121 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003468/0.0003469, allocations: 11.98 kB / 0.8729 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.681/0.6814, allocations: 153.8 MB / 1.023 GB, free: 20 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.0026/0.684, allocations: 1.734 MB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001349/0.6854, allocations: 0.7053 MB / 1.025 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.6855, allocations: 4 kB / 1.025 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.6857, allocations: 27.73 kB / 1.025 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000104/0.6858, allocations: 23.78 kB / 1.025 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004614/0.6863, allocations: 139.9 kB / 1.026 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000453/0.6867, allocations: 375.2 kB / 1.026 GB, free: 13 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003433/0.6871, allocations: 191.8 kB / 1.026 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001548/0.6873, allocations: 115.5 kB / 1.026 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.6874, allocations: 111.4 kB / 1.026 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.659e-05/0.6875, allocations: 12 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.518e-05/0.6876, allocations: 23.98 kB / 1.026 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.155e-05/0.6876, allocations: 55.77 kB / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.6878, allocations: 149 kB / 1.027 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004253/0.6882, allocations: 372.8 kB / 1.027 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.6882, allocations: 0 / 1.027 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.473e-06/0.6883, allocations: 4 kB / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.84e-06/0.6883, allocations: 0 / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0009338/0.6892, allocations: 0.5444 MB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.6893, allocations: 11.98 kB / 1.028 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.708e-05/0.6893, allocations: 32.56 kB / 1.028 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003476/0.6897, allocations: 271.7 kB / 1.028 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.703e-05/0.6897, allocations: 33.02 kB / 1.028 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.902e-05/0.6898, allocations: 32.36 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000712/0.6905, allocations: 341.2 kB / 1.028 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.6906, allocations: 0 / 1.028 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.043e-05/0.6906, allocations: 19.98 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.6906, allocations: 8 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006202/0.6912, allocations: 262 kB / 1.028 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001565/0.6928, allocations: 0.9512 MB / 1.029 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006968/0.6935, allocations: 281.7 kB / 1.03 GB, free: 9.062 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002877/0.6938, allocations: 132.8 kB / 1.03 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.6939, allocations: 0 / 1.03 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004707/0.6943, allocations: 187.8 kB / 1.03 GB, free: 8.734 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=32): time 4.157e-06/0.6944, allocations: 0 / 1.03 GB, free: 8.734 MB / 0.7794 GB Notification: Performance of matching and sorting (n=32): time 0.0009228/0.6953, allocations: 377.1 kB / 1.03 GB, free: 8.359 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.092e-05/0.6953, allocations: 59.39 kB / 1.03 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000212/0.6956, allocations: 203.3 kB / 1.031 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.942e-05/0.6956, allocations: 45.69 kB / 1.031 GB, free: 8.023 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.6958, allocations: 156.5 kB / 1.031 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.992e-05/0.6958, allocations: 82.91 kB / 1.031 GB, free: 7.785 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.777e-05/0.6959, allocations: 57.67 kB / 1.031 GB, free: 7.723 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001729/0.6961, allocations: 338.8 kB / 1.031 GB, free: 7.383 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002853/0.6964, allocations: 108.8 kB / 1.031 GB, free: 7.273 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003309/0.6967, allocations: 177.5 kB / 1.031 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000542/0.6973, allocations: 258.7 kB / 1.032 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.6973, allocations: 0 / 1.032 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007885/0.6981, allocations: 390.5 kB / 1.032 GB, free: 6.41 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.544e-05/0.6982, allocations: 33.64 kB / 1.032 GB, free: 6.371 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.6982, allocations: 4 kB / 1.032 GB, free: 6.367 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.6982, allocations: 4.156 kB / 1.032 GB, free: 6.363 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/0.6984, allocations: 47.91 kB / 1.032 GB, free: 6.316 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.6985, allocations: 4 kB / 1.032 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002709/0.6987, allocations: 55.66 kB / 1.032 GB, free: 6.258 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.513e-05/0.6988, allocations: 19.98 kB / 1.032 GB, free: 6.238 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.wseCon.T1.enableFire,$PRE.wseCon.T2.enableFire,wseCon.stateGraphRoot.resume,wseCon.stateGraphRoot.suspend,wseCon.stateGraphRoot.activeSteps,wseCon.T2.t_start,$PRE.wseCon.T2.t_start,wseCon.T2.fire,wseCon.T2.enableFire,wseCon.T2.condition,wseCon.on.oldActive,$PRE.wseCon.on.oldActive,wseCon.on.newActive,$PRE.wseCon.on.newActive,wseCon.on.localActive,$PRE.wseCon.on.localActive,wseCon.on.active,wseCon.T1.t_start,$PRE.wseCon.T1.t_start,wseCon.T1.fire,wseCon.T1.enableFire,wseCon.T1.condition,wseCon.off.active,wseCon.off.oldActive,$PRE.wseCon.off.oldActive,wseCon.off.newActive,$PRE.wseCon.off.newActive,wseCon.off.localActive,$PRE.wseCon.off.localActive,wseCHWST.count,$PRE.wseCHWST.count,wseCHWST.T_start,$PRE.wseCHWST.T_start,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0002208/0.699, allocations: 177.7 kB / 1.032 GB, free: 6.055 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.655e-05/0.6991, allocations: 23.7 kB / 1.032 GB, free: 6.031 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007324/0.6998, allocations: 315.1 kB / 1.033 GB, free: 5.715 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.6998, allocations: 4 kB / 1.033 GB, free: 5.711 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.6998, allocations: 0 / 1.033 GB, free: 5.711 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.6998, allocations: 0 / 1.033 GB, free: 5.711 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001328/0.7012, allocations: 0.7726 MB / 1.034 GB, free: 4.883 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.7012, allocations: 0 / 1.034 GB, free: 4.883 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.7013, allocations: 31.91 kB / 1.034 GB, free: 4.852 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.7013, allocations: 4 kB / 1.034 GB, free: 4.848 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.119e-05/0.7014, allocations: 4 kB / 1.034 GB, free: 4.844 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.005e-06/0.7014, allocations: 7.938 kB / 1.034 GB, free: 4.836 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.7014, allocations: 4 kB / 1.034 GB, free: 4.832 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006495/0.702, allocations: 379.3 kB / 1.034 GB, free: 4.445 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.146e-05/0.7021, allocations: 100.8 kB / 1.034 GB, free: 4.328 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.131e-05/0.7022, allocations: 16 kB / 1.034 GB, free: 4.312 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000247/0.7024, allocations: 43.83 kB / 1.034 GB, free: 4.27 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.7025, allocations: 35.95 kB / 1.034 GB, free: 4.234 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-05/0.7026, allocations: 11.98 kB / 1.034 GB, free: 4.223 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001109/0.7027, allocations: 127.5 kB / 1.034 GB, free: 4.098 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7027, allocations: 4 kB / 1.034 GB, free: 4.094 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003335/0.703, allocations: 67.84 kB / 1.034 GB, free: 4.027 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 24 (wseCon.T1.enableFire,wseCon.T2.enableFire,wseCon.on.localActive,wseCon.off.localActive,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.newActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.condition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.active,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.condition,wseCon.T2.fire,wseCon.T2.t_start,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001981/0.7032, allocations: 121.4 kB / 1.034 GB, free: 3.898 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000714/0.704, allocations: 348 kB / 1.035 GB, free: 3.547 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.704, allocations: 0 / 1.035 GB, free: 3.547 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003111/0.7043, allocations: 147.8 kB / 1.035 GB, free: 3.402 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003728/0.7047, allocations: 34.98 kB / 1.035 GB, free: 3.371 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.7057, allocations: 0.5389 MB / 1.035 GB, free: 2.809 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000451/0.7062, allocations: 0.7603 MB / 1.036 GB, free: 2.02 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001198/0.7063, allocations: 34.28 kB / 1.036 GB, free: 1.988 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.804e-05/0.7064, allocations: 27.44 kB / 1.036 GB, free: 1.961 MB / 0.7794 GB Notification: Performance of SimCode: time 3.3e-07/0.7064, allocations: 0 / 1.036 GB, free: 1.961 MB / 0.7794 GB Notification: Performance of Templates: time 0.00705/0.7135, allocations: 2.809 MB / 1.039 GB, free: 15.16 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches