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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001574/0.001574, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.00176/0.00176, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.389/1.389, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.522/2.522, allocations: 469.4 MB / 0.7427 GB, free: 3.676 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 63.62 kB / 0.9088 GB, free: 14.15 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3082, allocations: 159.1 MB / 1.064 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.004117/0.3124, allocations: 2.008 MB / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001237/0.3137, allocations: 0.6936 MB / 1.067 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.3138, allocations: 4 kB / 1.067 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.314, allocations: 35.61 kB / 1.067 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.859e-05/0.3141, allocations: 39.59 kB / 1.067 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004308/0.3146, allocations: 163.7 kB / 1.067 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003954/0.315, allocations: 399.3 kB / 1.067 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000332/0.3153, allocations: 247.8 kB / 1.068 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001434/0.3155, allocations: 131.6 kB / 1.068 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001689/0.3156, allocations: 151.3 kB / 1.068 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.445e-05/0.3157, allocations: 40 kB / 1.068 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.344e-05/0.3158, allocations: 44 kB / 1.068 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 8.384e-05/0.3159, allocations: 91.73 kB / 1.068 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001196/0.316, allocations: 147.3 kB / 1.068 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003793/0.3164, allocations: 411 kB / 1.069 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3164, allocations: 0 / 1.069 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3164, allocations: 0 / 1.069 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.663e-06/0.3164, allocations: 0 / 1.069 GB, free: 10.44 MB / 0.8419 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.0008941/0.3173, allocations: 0.6086 MB / 1.069 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.3174, allocations: 12.62 kB / 1.069 GB, free: 9.766 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.148e-05/0.3175, allocations: 36.59 kB / 1.069 GB, free: 9.73 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002894/0.3178, allocations: 271.8 kB / 1.07 GB, free: 9.426 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.641e-05/0.3178, allocations: 25.03 kB / 1.07 GB, free: 9.398 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.538e-05/0.3178, allocations: 36.38 kB / 1.07 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005747/0.3184, allocations: 341.1 kB / 1.07 GB, free: 9.02 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.3185, allocations: 7.984 kB / 1.07 GB, free: 9.012 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.695e-05/0.3185, allocations: 12 kB / 1.07 GB, free: 9 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.3185, allocations: 8 kB / 1.07 GB, free: 8.992 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005245/0.319, allocations: 246.1 kB / 1.07 GB, free: 8.754 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001319/0.3204, allocations: 0.9513 MB / 1.071 GB, free: 7.746 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005964/0.321, allocations: 266.8 kB / 1.071 GB, free: 7.477 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002358/0.3212, allocations: 124.8 kB / 1.072 GB, free: 7.352 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.3213, allocations: 4 kB / 1.072 GB, free: 7.348 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000405/0.3217, allocations: 191.6 kB / 1.072 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=32): time 2.315e-06/0.3217, allocations: 0 / 1.072 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of matching and sorting (n=32): time 0.000774/0.3225, allocations: 345.3 kB / 1.072 GB, free: 6.805 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.725e-05/0.3225, allocations: 59.41 kB / 1.072 GB, free: 6.734 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001588/0.3227, allocations: 207.2 kB / 1.072 GB, free: 6.52 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.3227, allocations: 37.7 kB / 1.072 GB, free: 6.477 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.339e-05/0.3228, allocations: 156.5 kB / 1.072 GB, free: 6.32 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.448e-05/0.3229, allocations: 82.92 kB / 1.073 GB, free: 6.238 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.323, allocations: 94.02 kB / 1.073 GB, free: 6.141 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.3231, allocations: 342.8 kB / 1.073 GB, free: 5.797 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000248/0.3234, allocations: 104.8 kB / 1.073 GB, free: 5.695 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002839/0.3237, allocations: 169.4 kB / 1.073 GB, free: 5.516 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004475/0.3241, allocations: 254.7 kB / 1.073 GB, free: 5.242 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3241, allocations: 0 / 1.073 GB, free: 5.242 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000641/0.3248, allocations: 374.6 kB / 1.074 GB, free: 4.863 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.594e-05/0.3248, allocations: 33.7 kB / 1.074 GB, free: 4.824 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3248, allocations: 0 / 1.074 GB, free: 4.824 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.3249, allocations: 4 kB / 1.074 GB, free: 4.82 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.3251, allocations: 43.91 kB / 1.074 GB, free: 4.777 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.3251, allocations: 4 kB / 1.074 GB, free: 4.773 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002528/0.3253, allocations: 59.8 kB / 1.074 GB, free: 4.715 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.34e-05/0.3254, allocations: 12 kB / 1.074 GB, free: 4.703 MB / 0.8419 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.0001692/0.3256, allocations: 181.6 kB / 1.074 GB, free: 4.52 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.232e-05/0.3256, allocations: 15.81 kB / 1.074 GB, free: 4.504 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005905/0.3262, allocations: 295.2 kB / 1.074 GB, free: 4.211 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.3262, allocations: 4 kB / 1.074 GB, free: 4.207 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.3262, allocations: 4 kB / 1.074 GB, free: 4.203 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.3262, allocations: 3.984 kB / 1.074 GB, free: 4.199 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001019/0.3273, allocations: 0.7607 MB / 1.075 GB, free: 3.383 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.3273, allocations: 4 kB / 1.075 GB, free: 3.379 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001292/0.3274, allocations: 31.91 kB / 1.075 GB, free: 3.348 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3274, allocations: 0 / 1.075 GB, free: 3.348 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.3274, allocations: 8 kB / 1.075 GB, free: 3.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.3275, allocations: 3.938 kB / 1.075 GB, free: 3.336 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3275, allocations: 0 / 1.075 GB, free: 3.336 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005541/0.328, allocations: 375 kB / 1.076 GB, free: 2.953 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.262e-05/0.3281, allocations: 100.8 kB / 1.076 GB, free: 2.836 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.938e-05/0.3281, allocations: 11.98 kB / 1.076 GB, free: 2.824 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/0.3284, allocations: 35.91 kB / 1.076 GB, free: 2.789 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.3285, allocations: 35.95 kB / 1.076 GB, free: 2.754 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/0.3285, allocations: 11.94 kB / 1.076 GB, free: 2.742 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.466e-05/0.3286, allocations: 139.7 kB / 1.076 GB, free: 2.605 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3286, allocations: 0 / 1.076 GB, free: 2.605 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003284/0.329, allocations: 67.84 kB / 1.076 GB, free: 2.539 MB / 0.8419 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.0001724/0.3291, allocations: 125.4 kB / 1.076 GB, free: 2.406 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006985/0.3298, allocations: 351.2 kB / 1.076 GB, free: 2.051 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3299, allocations: 0 / 1.076 GB, free: 2.051 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002591/0.3301, allocations: 135.9 kB / 1.077 GB, free: 1.918 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.3305, allocations: 27.98 kB / 1.077 GB, free: 1.891 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008455/0.3313, allocations: 490.8 kB / 1.077 GB, free: 1.383 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003093/0.3316, allocations: 0.7603 MB / 1.078 GB, free: 0.5938 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.716e-05/0.3317, allocations: 31.42 kB / 1.078 GB, free: 0.5625 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.3317, allocations: 0 / 1.078 GB, free: 0.5625 MB / 0.8419 GB Notification: Performance of Templates: time 0.4966/0.8283, allocations: 3.468 MB / 1.081 GB, free: 22.07 MB / 0.8419 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