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.001547/0.001547, allocations: 108.5 kB / 16.36 MB, free: 6.285 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.001746/0.001746, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.313/1.313, allocations: 222.9 MB / 241 MB, free: 15.18 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.493/2.493, allocations: 437.1 MB / 0.7112 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 60.19 kB / 0.8707 GB, free: 1.457 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.2996, allocations: 151.6 MB / 1.019 GB, free: 9.871 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.00326/0.3029, allocations: 2.023 MB / 1.021 GB, free: 7.828 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001096/0.304, allocations: 0.6857 MB / 1.021 GB, free: 7.137 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.3041, allocations: 4 kB / 1.021 GB, free: 7.133 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.3043, allocations: 35.55 kB / 1.021 GB, free: 7.098 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 9.326e-05/0.3044, allocations: 39.66 kB / 1.022 GB, free: 7.059 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003987/0.3048, allocations: 163.7 kB / 1.022 GB, free: 6.898 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004076/0.3052, allocations: 411.2 kB / 1.022 GB, free: 6.496 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003283/0.3055, allocations: 248.8 kB / 1.022 GB, free: 6.254 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001425/0.3057, allocations: 135.5 kB / 1.022 GB, free: 6.121 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001558/0.3058, allocations: 151.4 kB / 1.023 GB, free: 5.973 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.234e-05/0.3059, allocations: 40 kB / 1.023 GB, free: 5.934 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.03e-05/0.306, allocations: 55.98 kB / 1.023 GB, free: 5.879 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.549e-05/0.3061, allocations: 75.77 kB / 1.023 GB, free: 5.805 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.3062, allocations: 155.3 kB / 1.023 GB, free: 5.652 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003599/0.3066, allocations: 434.5 kB / 1.023 GB, free: 5.227 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3066, allocations: 0 / 1.023 GB, free: 5.227 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.844e-06/0.3066, allocations: 0 / 1.023 GB, free: 5.227 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.324e-06/0.3066, allocations: 0 / 1.023 GB, free: 5.227 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.0008686/0.3075, allocations: 0.603 MB / 1.024 GB, free: 4.57 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.256e-05/0.3075, allocations: 11.98 kB / 1.024 GB, free: 4.559 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.373e-05/0.3076, allocations: 36.5 kB / 1.024 GB, free: 4.523 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003237/0.308, allocations: 274.3 kB / 1.024 GB, free: 4.219 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.57e-05/0.308, allocations: 32.97 kB / 1.024 GB, free: 4.188 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.666e-05/0.3081, allocations: 32.36 kB / 1.024 GB, free: 4.156 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005935/0.3087, allocations: 341.2 kB / 1.025 GB, free: 3.812 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.3087, allocations: 0 / 1.025 GB, free: 3.812 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.102e-05/0.3087, allocations: 8 kB / 1.025 GB, free: 3.805 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/0.3087, allocations: 8 kB / 1.025 GB, free: 3.797 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005413/0.3093, allocations: 254 kB / 1.025 GB, free: 3.547 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.3106, allocations: 0.9473 MB / 1.026 GB, free: 2.543 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005961/0.3112, allocations: 270.8 kB / 1.026 GB, free: 2.27 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002416/0.3115, allocations: 121.3 kB / 1.026 GB, free: 2.148 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.3115, allocations: 4 kB / 1.026 GB, free: 2.145 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003454/0.3118, allocations: 179.2 kB / 1.026 GB, free: 1.957 MB / 0.795 GB Notification: Performance of pre-optimization done (n=32): time 2.124e-06/0.3119, allocations: 0 / 1.026 GB, free: 1.957 MB / 0.795 GB Notification: Performance of matching and sorting (n=32): time 0.0007726/0.3126, allocations: 350.9 kB / 1.027 GB, free: 1.609 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.3127, allocations: 59.39 kB / 1.027 GB, free: 1.539 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.3129, allocations: 203.8 kB / 1.027 GB, free: 1.324 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.268e-05/0.3129, allocations: 45.7 kB / 1.027 GB, free: 1.273 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 8.879e-05/0.313, allocations: 152.5 kB / 1.027 GB, free: 1.121 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 6.905e-05/0.3131, allocations: 86.92 kB / 1.027 GB, free: 1.035 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/0.3132, allocations: 82.12 kB / 1.027 GB, free: 0.9492 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.3133, allocations: 338.8 kB / 1.028 GB, free: 0.6094 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002553/0.3136, allocations: 108.8 kB / 1.028 GB, free: 0.5039 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002744/0.3139, allocations: 165.5 kB / 1.028 GB, free: 332 kB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004514/0.3143, allocations: 254.7 kB / 1.028 GB, free: 52 kB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3143, allocations: 0 / 1.028 GB, free: 52 kB / 0.795 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006751/0.315, allocations: 366.6 kB / 1.028 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.551e-05/0.3151, allocations: 41.69 kB / 1.028 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.3151, allocations: 0 / 1.028 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.3151, allocations: 7.938 kB / 1.028 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001907/0.3153, allocations: 44.06 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.3153, allocations: 4 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000247/0.3156, allocations: 55.56 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.601e-05/0.3156, allocations: 23.92 kB / 1.029 GB, free: 15.5 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.0001566/0.3158, allocations: 174.8 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.28e-05/0.3158, allocations: 19.81 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005947/0.3164, allocations: 299.2 kB / 1.029 GB, free: 15 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.3164, allocations: 4 kB / 1.029 GB, free: 15 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.3164, allocations: 4 kB / 1.029 GB, free: 15 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.3164, allocations: 0 / 1.029 GB, free: 15 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.3175, allocations: 0.7497 MB / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.3175, allocations: 0 / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001334/0.3176, allocations: 31.91 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.3176, allocations: 4 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.3177, allocations: 4 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.3177, allocations: 7.938 kB / 1.03 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3177, allocations: 0 / 1.03 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005597/0.3182, allocations: 380.4 kB / 1.03 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.297e-05/0.3183, allocations: 96.86 kB / 1.03 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.551e-05/0.3184, allocations: 8 kB / 1.03 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002457/0.3186, allocations: 35.89 kB / 1.03 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.3187, allocations: 39.95 kB / 1.03 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/0.3187, allocations: 12 kB / 1.03 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.207e-05/0.3188, allocations: 131.2 kB / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3188, allocations: 0 / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003195/0.3192, allocations: 71.75 kB / 1.031 GB, free: 13.35 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.0001472/0.3193, allocations: 117.4 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006229/0.32, allocations: 344.2 kB / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.32, allocations: 0 / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002666/0.3202, allocations: 131.8 kB / 1.031 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/0.3206, allocations: 41.47 kB / 1.031 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007636/0.3214, allocations: 473.8 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.3217, allocations: 0.7525 MB / 1.032 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 9.953e-05/0.3218, allocations: 30.28 kB / 1.032 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.976e-05/0.3219, allocations: 31.42 kB / 1.032 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.3219, allocations: 0 / 1.032 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of Templates: time 0.006852/0.3287, allocations: 3.111 MB / 1.035 GB, free: 8.285 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 gbode -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