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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001346/0.001346, allocations: 101.8 kB / 16.35 MB, free: 5.879 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.001418/0.001418, allocations: 199.1 kB / 17.3 MB, free: 5.52 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.297/1.297, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.342/2.342, allocations: 437.1 MB / 0.7112 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 64.47 kB / 0.8707 GB, free: 1.441 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.2578, allocations: 151.6 MB / 1.019 GB, free: 9.848 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003445/0.2614, allocations: 2.008 MB / 1.021 GB, free: 7.82 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001168/0.2626, allocations: 0.6935 MB / 1.021 GB, free: 7.121 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.2627, allocations: 4 kB / 1.021 GB, free: 7.117 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001473/0.2629, allocations: 31.61 kB / 1.021 GB, free: 7.086 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 9.067e-05/0.263, allocations: 35.59 kB / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004487/0.2634, allocations: 167.7 kB / 1.022 GB, free: 6.887 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0005278/0.264, allocations: 415.1 kB / 1.022 GB, free: 6.48 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003431/0.2643, allocations: 252.8 kB / 1.022 GB, free: 6.234 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001582/0.2645, allocations: 135.6 kB / 1.022 GB, free: 6.102 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.2647, allocations: 143.3 kB / 1.023 GB, free: 5.961 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.214e-05/0.2647, allocations: 40 kB / 1.023 GB, free: 5.922 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.261e-05/0.2648, allocations: 52 kB / 1.023 GB, free: 5.871 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.761e-05/0.2649, allocations: 87.73 kB / 1.023 GB, free: 5.785 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001436/0.2651, allocations: 151.3 kB / 1.023 GB, free: 5.637 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000395/0.2655, allocations: 430.5 kB / 1.023 GB, free: 5.215 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.2655, allocations: 0 / 1.023 GB, free: 5.215 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.094e-06/0.2655, allocations: 0 / 1.023 GB, free: 5.215 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.161e-05/0.2655, allocations: 0 / 1.023 GB, free: 5.215 MB / 0.795 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.00089/0.2664, allocations: 0.6029 MB / 1.024 GB, free: 4.559 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.2664, allocations: 12.88 kB / 1.024 GB, free: 4.547 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.619e-05/0.2665, allocations: 36.56 kB / 1.024 GB, free: 4.512 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003173/0.2668, allocations: 270 kB / 1.024 GB, free: 4.211 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.671e-05/0.2669, allocations: 33.03 kB / 1.024 GB, free: 4.18 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.621e-05/0.2669, allocations: 32.38 kB / 1.024 GB, free: 4.148 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005887/0.2675, allocations: 345 kB / 1.025 GB, free: 3.801 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.2675, allocations: 0 / 1.025 GB, free: 3.801 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.834e-05/0.2676, allocations: 12 kB / 1.025 GB, free: 3.789 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.2676, allocations: 8 kB / 1.025 GB, free: 3.781 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005351/0.2681, allocations: 250.1 kB / 1.025 GB, free: 3.535 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001356/0.2695, allocations: 0.9512 MB / 1.026 GB, free: 2.527 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006189/0.2701, allocations: 265 kB / 1.026 GB, free: 2.262 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002291/0.2704, allocations: 125.3 kB / 1.026 GB, free: 2.137 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.403e-05/0.2704, allocations: 4 kB / 1.026 GB, free: 2.133 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003482/0.2708, allocations: 183.1 kB / 1.026 GB, free: 1.941 MB / 0.795 GB Notification: Performance of pre-optimization done (n=32): time 1.723e-06/0.2708, allocations: 0 / 1.026 GB, free: 1.941 MB / 0.795 GB Notification: Performance of matching and sorting (n=32): time 0.0007687/0.2715, allocations: 350.9 kB / 1.027 GB, free: 1.594 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/0.2716, allocations: 55.41 kB / 1.027 GB, free: 1.527 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001736/0.2718, allocations: 207.8 kB / 1.027 GB, free: 1.309 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.737e-05/0.2718, allocations: 37.7 kB / 1.027 GB, free: 1.266 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 9.617e-05/0.2719, allocations: 148.5 kB / 1.027 GB, free: 1.117 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 6.346e-05/0.272, allocations: 86.92 kB / 1.027 GB, free: 1.031 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.2721, allocations: 90.11 kB / 1.027 GB, free: 0.9375 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.2722, allocations: 342.7 kB / 1.028 GB, free: 0.5938 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002357/0.2725, allocations: 108.8 kB / 1.028 GB, free: 500 kB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000272/0.2728, allocations: 161.5 kB / 1.028 GB, free: 320 kB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004353/0.2732, allocations: 254.7 kB / 1.028 GB, free: 40 kB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2732, allocations: 3.938 kB / 1.028 GB, free: 36 kB / 0.795 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006929/0.2739, allocations: 370.6 kB / 1.028 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.739e-05/0.274, allocations: 37.7 kB / 1.028 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.274, allocations: 4 kB / 1.028 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.274, allocations: 0 / 1.028 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001916/0.2742, allocations: 43.84 kB / 1.028 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.2742, allocations: 4 kB / 1.028 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002547/0.2745, allocations: 67.64 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.565e-05/0.2745, allocations: 12 kB / 1.029 GB, free: 15.49 MB / 0.8106 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.localCondition,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.localCondition,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.0001825/0.2747, allocations: 185.2 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.27e-05/0.2747, allocations: 19.75 kB / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005973/0.2753, allocations: 303.2 kB / 1.029 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.2754, allocations: 4 kB / 1.029 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2754, allocations: 0 / 1.029 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.2754, allocations: 3.984 kB / 1.029 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001038/0.2764, allocations: 0.7419 MB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2764, allocations: 0 / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001237/0.2766, allocations: 23.98 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.2766, allocations: 4 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.345e-05/0.2766, allocations: 8 kB / 1.03 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.2766, allocations: 3.938 kB / 1.03 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.2766, allocations: 3.984 kB / 1.03 GB, free: 14.13 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005438/0.2772, allocations: 380.3 kB / 1.03 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.317e-05/0.2772, allocations: 96.86 kB / 1.03 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.599e-05/0.2773, allocations: 11.98 kB / 1.03 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.2775, allocations: 35.91 kB / 1.03 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.2776, allocations: 35.95 kB / 1.03 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/0.2776, allocations: 15.98 kB / 1.03 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.921e-05/0.2777, allocations: 127.2 kB / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2777, allocations: 0 / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003221/0.2781, allocations: 67.75 kB / 1.031 GB, free: 13.34 MB / 0.8106 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.active,wseCon.off.active,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.localActive,wseCon.off.newActive,wseCon.off.oldActive,wseCon.T1.localCondition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.localActive,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.localCondition,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.0001534/0.2782, allocations: 129.4 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005853/0.2788, allocations: 336.2 kB / 1.031 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.2788, allocations: 0 / 1.031 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002719/0.2791, allocations: 148.1 kB / 1.031 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/0.2795, allocations: 33.42 kB / 1.031 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008276/0.2803, allocations: 463.6 kB / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.2806, allocations: 0.7642 MB / 1.032 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001/0.2807, allocations: 34.28 kB / 1.032 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.426e-05/0.2808, allocations: 27.44 kB / 1.032 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of SimCode: time 3.11e-07/0.2808, allocations: 0 / 1.032 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of Templates: time 0.006114/0.2869, allocations: 3.11 MB / 1.035 GB, free: 8.266 MB / 0.8106 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=480 -s cvode -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/jenkins1/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