Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001557/0.001557, allocations: 99.61 kB / 16.27 MB, free: 5.969 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.001774/0.001774, allocations: 193.8 kB / 17.2 MB, free: 5.594 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.325/1.325, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.226/2.226, allocations: 390.2 MB / 0.6653 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 65.28 kB / 0.8132 GB, free: 33.15 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2691, allocations: 140.4 MB / 0.9503 GB, free: 8.867 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.00401/0.2732, allocations: 2.009 MB / 0.9522 GB, free: 6.84 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001527/0.2748, allocations: 0.6897 MB / 0.9529 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002062/0.275, allocations: 4 kB / 0.9529 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001793/0.2752, allocations: 43.59 kB / 0.953 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001677/0.2754, allocations: 39.59 kB / 0.953 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005773/0.276, allocations: 151.8 kB / 0.9531 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000563/0.2766, allocations: 407.2 kB / 0.9535 GB, free: 5.512 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000457/0.277, allocations: 255.8 kB / 0.9538 GB, free: 5.266 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002254/0.2773, allocations: 135.6 kB / 0.9539 GB, free: 5.133 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002429/0.2775, allocations: 151.3 kB / 0.954 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.514e-05/0.2776, allocations: 40 kB / 0.9541 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001087/0.2777, allocations: 44 kB / 0.9541 GB, free: 4.902 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.75e-05/0.2778, allocations: 87.73 kB / 0.9542 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.278, allocations: 147.3 kB / 0.9543 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004403/0.2784, allocations: 415 kB / 0.9547 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.2785, allocations: 4 kB / 0.9547 GB, free: 4.262 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.903e-06/0.2785, allocations: 0 / 0.9547 GB, free: 4.262 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.592e-05/0.2785, allocations: 0 / 0.9547 GB, free: 4.262 MB / 0.7325 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.001109/0.2796, allocations: 0.599 MB / 0.9553 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.2796, allocations: 12.03 kB / 0.9553 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.151e-05/0.2797, allocations: 32.56 kB / 0.9554 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003282/0.2801, allocations: 267.8 kB / 0.9556 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.981e-05/0.2801, allocations: 33.02 kB / 0.9557 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.203e-05/0.2802, allocations: 36.38 kB / 0.9557 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006545/0.2808, allocations: 337.1 kB / 0.956 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.2809, allocations: 0 / 0.956 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.585e-05/0.2809, allocations: 19.97 kB / 0.956 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.2809, allocations: 8 kB / 0.956 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005824/0.2815, allocations: 246.1 kB / 0.9563 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001553/0.2831, allocations: 0.9588 MB / 0.9572 GB, free: 1.566 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006584/0.2838, allocations: 266.8 kB / 0.9575 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002546/0.284, allocations: 120.8 kB / 0.9576 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.565e-05/0.2841, allocations: 0 / 0.9576 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004299/0.2845, allocations: 187.7 kB / 0.9578 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=32): time 1.953e-06/0.2845, allocations: 4 kB / 0.9578 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of matching and sorting (n=32): time 0.0008497/0.2854, allocations: 353.2 kB / 0.9581 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.251e-05/0.2854, allocations: 63.39 kB / 0.9582 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001874/0.2856, allocations: 199.3 kB / 0.9584 GB, free: 352 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.117e-05/0.2857, allocations: 37.7 kB / 0.9584 GB, free: 308 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.2858, allocations: 152.6 kB / 0.9585 GB, free: 152 kB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.708e-05/0.2859, allocations: 90.83 kB / 0.9586 GB, free: 60 kB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.286, allocations: 90.05 kB / 0.9587 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.2862, allocations: 338.8 kB / 0.959 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002792/0.2864, allocations: 104.8 kB / 0.9591 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003219/0.2868, allocations: 173.4 kB / 0.9593 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004808/0.2873, allocations: 250.7 kB / 0.9595 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.2873, allocations: 4 kB / 0.9595 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007134/0.288, allocations: 366.8 kB / 0.9599 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.576e-05/0.288, allocations: 29.7 kB / 0.9599 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.2881, allocations: 8 kB / 0.9599 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.2881, allocations: 0 / 0.9599 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002075/0.2883, allocations: 43.91 kB / 0.96 GB, free: 14.6 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.2883, allocations: 7.938 kB / 0.96 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002773/0.2886, allocations: 59.8 kB / 0.96 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.61e-05/0.2887, allocations: 12 kB / 0.96 GB, free: 14.52 MB / 0.7481 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.0001844/0.2888, allocations: 177.7 kB / 0.9602 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.76e-05/0.2889, allocations: 23.72 kB / 0.9602 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006366/0.2895, allocations: 292.4 kB / 0.9605 GB, free: 14.03 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.2896, allocations: 4 kB / 0.9605 GB, free: 14.03 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.2896, allocations: 0 / 0.9605 GB, free: 14.03 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.2896, allocations: 3.984 kB / 0.9605 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.2908, allocations: 0.7519 MB / 0.9613 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.2908, allocations: 0 / 0.9613 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001377/0.2909, allocations: 35.91 kB / 0.9613 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.51e-05/0.2909, allocations: 4 kB / 0.9613 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.291, allocations: 4 kB / 0.9613 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.291, allocations: 7.938 kB / 0.9613 GB, free: 13.16 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.291, allocations: 0 / 0.9613 GB, free: 13.16 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005963/0.2916, allocations: 375 kB / 0.9617 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.922e-05/0.2917, allocations: 92.86 kB / 0.9618 GB, free: 12.67 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.22e-05/0.2917, allocations: 11.94 kB / 0.9618 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000247/0.292, allocations: 35.89 kB / 0.9618 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.2921, allocations: 39.95 kB / 0.9618 GB, free: 12.59 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.122e-05/0.2921, allocations: 12 kB / 0.9618 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001084/0.2922, allocations: 135.7 kB / 0.962 GB, free: 12.44 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2922, allocations: 0 / 0.962 GB, free: 12.44 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003517/0.2926, allocations: 71.75 kB / 0.962 GB, free: 12.37 MB / 0.7481 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.0001782/0.2928, allocations: 125.4 kB / 0.9622 GB, free: 12.24 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007539/0.2935, allocations: 355 kB / 0.9625 GB, free: 11.88 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2936, allocations: 0 / 0.9625 GB, free: 11.88 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002772/0.2938, allocations: 131.9 kB / 0.9626 GB, free: 11.75 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003446/0.2942, allocations: 39.92 kB / 0.9627 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009362/0.2951, allocations: 498.9 kB / 0.9631 GB, free: 11.19 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000338/0.2955, allocations: 0.7602 MB / 0.9639 GB, free: 10.4 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.2956, allocations: 31.42 kB / 0.9639 GB, free: 10.37 MB / 0.7481 GB Notification: Performance of SimCode: time 5.71e-07/0.2956, allocations: 0 / 0.9639 GB, free: 10.37 MB / 0.7481 GB Notification: Performance of Templates: time 0.005907/0.3015, allocations: 3.477 MB / 0.9673 GB, free: 6.91 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches