Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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_latest_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_latest_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.0009223/0.0009224, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 185.5 kB / 16.92 MB, free: 6.703 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.401/1.401, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.653/2.653, allocations: 462.6 MB / 0.737 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003661/0.0003659, allocations: 9.625 kB / 0.9034 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.3084, allocations: 159.6 MB / 1.059 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002515/0.311, allocations: 1.744 MB / 1.061 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001426/0.3124, allocations: 0.7013 MB / 1.062 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002883/0.3127, allocations: 4 kB / 1.062 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001687/0.3129, allocations: 23.73 kB / 1.062 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001482/0.3131, allocations: 27.78 kB / 1.062 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005238/0.3136, allocations: 143.9 kB / 1.062 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005083/0.3141, allocations: 363.3 kB / 1.062 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004014/0.3146, allocations: 207.7 kB / 1.062 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001826/0.3147, allocations: 99.56 kB / 1.063 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002085/0.315, allocations: 115.4 kB / 1.063 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.063e-05/0.315, allocations: 16 kB / 1.063 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.37e-05/0.3151, allocations: 19.98 kB / 1.063 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.82e-05/0.3152, allocations: 63.69 kB / 1.063 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.3154, allocations: 145 kB / 1.063 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003381/0.3157, allocations: 311.4 kB / 1.063 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3157, allocations: 0 / 1.063 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.884e-06/0.3157, allocations: 0 / 1.063 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.146e-05/0.3158, allocations: 0 / 1.063 GB, free: 1.031 MB / 0.8106 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.001042/0.3168, allocations: 0.5445 MB / 1.064 GB, free: 444 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.3169, allocations: 11.97 kB / 1.064 GB, free: 432 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.595e-05/0.317, allocations: 28.66 kB / 1.064 GB, free: 404 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.3173, allocations: 275.7 kB / 1.064 GB, free: 88 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.531e-05/0.3173, allocations: 29.02 kB / 1.064 GB, free: 56 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.251e-05/0.3174, allocations: 32.38 kB / 1.064 GB, free: 24 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007191/0.3181, allocations: 341.2 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.3182, allocations: 0 / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.492e-05/0.3182, allocations: 15.98 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.3182, allocations: 8 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006197/0.3188, allocations: 266 kB / 1.065 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.3204, allocations: 0.955 MB / 1.066 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006656/0.3211, allocations: 277.6 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002606/0.3213, allocations: 128.8 kB / 1.066 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.691e-05/0.3214, allocations: 4 kB / 1.066 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004193/0.3218, allocations: 187.2 kB / 1.066 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=32): time 1.843e-06/0.3218, allocations: 0 / 1.066 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of matching and sorting (n=32): time 0.0008404/0.3227, allocations: 369.8 kB / 1.067 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.3227, allocations: 63.39 kB / 1.067 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/0.3229, allocations: 203.3 kB / 1.067 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.01e-05/0.3229, allocations: 41.7 kB / 1.067 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.3231, allocations: 156.5 kB / 1.067 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.335e-05/0.3231, allocations: 74.95 kB / 1.067 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.159e-05/0.3232, allocations: 61.67 kB / 1.067 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.3233, allocations: 342.8 kB / 1.067 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002505/0.3236, allocations: 108.8 kB / 1.068 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002886/0.3239, allocations: 173.5 kB / 1.068 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004827/0.3244, allocations: 270.6 kB / 1.068 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3244, allocations: 0 / 1.068 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007181/0.3251, allocations: 382.6 kB / 1.068 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.883e-05/0.3252, allocations: 33.7 kB / 1.068 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.3252, allocations: 0 / 1.068 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.3252, allocations: 4 kB / 1.068 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002139/0.3254, allocations: 52.06 kB / 1.068 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.3254, allocations: 4 kB / 1.068 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002602/0.3257, allocations: 55.56 kB / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.354e-05/0.3257, allocations: 19.98 kB / 1.068 GB, free: 11.3 MB / 0.8262 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.0001889/0.3259, allocations: 181.7 kB / 1.069 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.469e-05/0.326, allocations: 19.8 kB / 1.069 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006257/0.3266, allocations: 304.3 kB / 1.069 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.3266, allocations: 8 kB / 1.069 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.3266, allocations: 4 kB / 1.069 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3267, allocations: 7.938 kB / 1.069 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.3278, allocations: 0.7713 MB / 1.07 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.3278, allocations: 0 / 1.07 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001362/0.328, allocations: 35.91 kB / 1.07 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.328, allocations: 0 / 1.07 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.05e-05/0.328, allocations: 8 kB / 1.07 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.328, allocations: 3.938 kB / 1.07 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.328, allocations: 0 / 1.07 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005676/0.3286, allocations: 379.2 kB / 1.07 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.499e-05/0.3287, allocations: 100.8 kB / 1.07 GB, free: 9.391 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.821e-05/0.3287, allocations: 11.94 kB / 1.07 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002453/0.329, allocations: 47.89 kB / 1.07 GB, free: 9.332 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.3291, allocations: 35.95 kB / 1.07 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.199e-05/0.3291, allocations: 11.98 kB / 1.07 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001002/0.3292, allocations: 131.8 kB / 1.07 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3292, allocations: 3.938 kB / 1.07 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003552/0.3296, allocations: 67.84 kB / 1.071 GB, free: 9.086 MB / 0.8262 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.0001758/0.3298, allocations: 129.5 kB / 1.071 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006535/0.3304, allocations: 347.5 kB / 1.071 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3304, allocations: 0 / 1.071 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002881/0.3307, allocations: 139.8 kB / 1.071 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003465/0.3311, allocations: 32.95 kB / 1.071 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009007/0.332, allocations: 0.568 MB / 1.072 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003242/0.3323, allocations: 0.7642 MB / 1.072 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.055e-05/0.3324, allocations: 23.44 kB / 1.072 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of SimCode: time 5.91e-07/0.3324, allocations: 3.938 kB / 1.072 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of Templates: time 0.006229/0.3387, allocations: 3.442 MB / 1.076 GB, free: 3.582 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches