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.00119/0.00119, allocations: 116.1 kB / 16.37 MB, free: 6.012 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.001101/0.001102, allocations: 190.9 kB / 17.31 MB, free: 5.613 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.437/1.437, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.459/2.459, allocations: 442.6 MB / 0.7165 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 74.75 kB / 0.8774 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3076/0.3089, allocations: 153 MB / 1.027 GB, free: 2.023 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003591/0.3125, allocations: 2.016 MB / 1.029 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00134/0.3139, allocations: 0.6895 MB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.314, allocations: 4 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001597/0.3143, allocations: 31.55 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001136/0.3144, allocations: 39.66 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000465/0.3149, allocations: 163.7 kB / 1.03 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004554/0.3153, allocations: 415.2 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003432/0.3157, allocations: 235.9 kB / 1.03 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001514/0.3158, allocations: 135.5 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.316, allocations: 151.4 kB / 1.031 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.753e-05/0.3161, allocations: 40 kB / 1.031 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.841e-05/0.3162, allocations: 52 kB / 1.031 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.232e-05/0.3163, allocations: 83.75 kB / 1.031 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.3164, allocations: 151.2 kB / 1.031 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004016/0.3168, allocations: 434.5 kB / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3168, allocations: 0 / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.934e-06/0.3168, allocations: 0 / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.205e-06/0.3168, allocations: 0 / 1.031 GB, free: 13.4 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.0009171/0.3178, allocations: 0.6067 MB / 1.032 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3178, allocations: 8.031 kB / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.49e-05/0.3179, allocations: 28.66 kB / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003648/0.3183, allocations: 273.4 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.978e-05/0.3183, allocations: 29.03 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.835e-05/0.3184, allocations: 28.38 kB / 1.032 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006494/0.319, allocations: 345.2 kB / 1.033 GB, free: 12 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.3191, allocations: 3.984 kB / 1.033 GB, free: 12 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.212e-05/0.3191, allocations: 12 kB / 1.033 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3191, allocations: 4 kB / 1.033 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005858/0.3197, allocations: 250 kB / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001386/0.3211, allocations: 0.9551 MB / 1.034 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005994/0.3217, allocations: 269.5 kB / 1.034 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002455/0.322, allocations: 125.3 kB / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.896e-05/0.322, allocations: 4 kB / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003834/0.3224, allocations: 184 kB / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=32): time 2.104e-06/0.3224, allocations: 0 / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of matching and sorting (n=32): time 0.0007793/0.3232, allocations: 349.8 kB / 1.035 GB, free: 9.789 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/0.3232, allocations: 59.41 kB / 1.035 GB, free: 9.719 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001803/0.3234, allocations: 199.8 kB / 1.035 GB, free: 9.508 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.865e-05/0.3235, allocations: 45.7 kB / 1.035 GB, free: 9.457 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.816e-05/0.3236, allocations: 152.5 kB / 1.035 GB, free: 9.305 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.229e-05/0.3237, allocations: 90.86 kB / 1.035 GB, free: 9.215 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.3238, allocations: 86.11 kB / 1.035 GB, free: 9.125 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.3239, allocations: 338.8 kB / 1.036 GB, free: 8.785 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002554/0.3242, allocations: 108.8 kB / 1.036 GB, free: 8.676 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002772/0.3245, allocations: 165.5 kB / 1.036 GB, free: 8.496 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004596/0.325, allocations: 255.4 kB / 1.036 GB, free: 8.223 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.325, allocations: 0 / 1.036 GB, free: 8.223 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006737/0.3256, allocations: 378.4 kB / 1.036 GB, free: 7.84 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.891e-05/0.3257, allocations: 33.7 kB / 1.036 GB, free: 7.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.3257, allocations: 0 / 1.036 GB, free: 7.801 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.3257, allocations: 4 kB / 1.036 GB, free: 7.797 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001963/0.3259, allocations: 48.06 kB / 1.036 GB, free: 7.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.3259, allocations: 4 kB / 1.036 GB, free: 7.746 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002757/0.3262, allocations: 55.64 kB / 1.037 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4e-05/0.3263, allocations: 16 kB / 1.037 GB, free: 7.676 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.0001781/0.3265, allocations: 181.6 kB / 1.037 GB, free: 7.488 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.239e-05/0.3265, allocations: 19.81 kB / 1.037 GB, free: 7.469 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000613/0.3271, allocations: 295.2 kB / 1.037 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.3271, allocations: 4 kB / 1.037 GB, free: 7.168 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3271, allocations: 0 / 1.037 GB, free: 7.168 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.3272, allocations: 3.984 kB / 1.037 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.3282, allocations: 0.7498 MB / 1.038 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3282, allocations: 0 / 1.038 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001344/0.3284, allocations: 31.92 kB / 1.038 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.3284, allocations: 0 / 1.038 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.3284, allocations: 8 kB / 1.038 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.3284, allocations: 3.938 kB / 1.038 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3284, allocations: 3.984 kB / 1.038 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005532/0.329, allocations: 376.4 kB / 1.038 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.158e-05/0.3291, allocations: 104.8 kB / 1.038 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.991e-05/0.3291, allocations: 11.92 kB / 1.038 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.3294, allocations: 31.91 kB / 1.038 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.3295, allocations: 43.95 kB / 1.038 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.298e-05/0.3295, allocations: 11.98 kB / 1.038 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001067/0.3296, allocations: 131.5 kB / 1.038 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.352e-06/0.3296, allocations: 3.938 kB / 1.038 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003152/0.3299, allocations: 67.78 kB / 1.039 GB, free: 5.508 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.0001929/0.3301, allocations: 129.5 kB / 1.039 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006298/0.3308, allocations: 335.9 kB / 1.039 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3308, allocations: 0 / 1.039 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002705/0.3311, allocations: 139.8 kB / 1.039 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.3314, allocations: 27.98 kB / 1.039 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008072/0.3322, allocations: 469.3 kB / 1.04 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003184/0.3326, allocations: 0.7564 MB / 1.04 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000101/0.3327, allocations: 30.28 kB / 1.04 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.087e-05/0.3327, allocations: 27.44 kB / 1.04 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of SimCode: time 2.41e-07/0.3328, allocations: 0 / 1.04 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of Templates: time 0.006681/0.3394, allocations: 3.115 MB / 1.043 GB, free: 464 kB / 0.8106 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 -s cvode -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