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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001832/0.001832, allocations: 192.2 kB / 16.25 MB, free: 6.633 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.261/1.261, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.329/2.329, allocations: 437 MB / 0.7101 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002025, allocations: 63.89 kB / 0.8689 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4985/0.5006, allocations: 151.6 MB / 1.017 GB, free: 2.859 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003056/0.5037, allocations: 2.096 MB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001043/0.5047, allocations: 0.6975 MB / 1.02 GB, free: 48 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001043/0.5048, allocations: 7.938 kB / 1.02 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001296/0.505, allocations: 19.8 kB / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.463e-05/0.5051, allocations: 31.78 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003748/0.5055, allocations: 135.8 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004086/0.5059, allocations: 407.2 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003202/0.5062, allocations: 266 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.5064, allocations: 131.6 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.5065, allocations: 147.4 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.863e-05/0.5066, allocations: 40 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.067e-05/0.5067, allocations: 48 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.278e-05/0.5068, allocations: 79.7 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001196/0.5069, allocations: 159.3 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003478/0.5072, allocations: 418.7 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.5072, allocations: 0 / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.293e-06/0.5073, allocations: 0 / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.401e-06/0.5073, allocations: 0 / 1.021 GB, free: 14.2 MB / 0.7794 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.0008392/0.5081, allocations: 0.5952 MB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.5081, allocations: 8.031 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.996e-05/0.5082, allocations: 66.72 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.617e-05/0.5083, allocations: 36.56 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002737/0.5086, allocations: 271.7 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.175e-05/0.5086, allocations: 25.03 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.587e-05/0.5087, allocations: 36.36 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000604/0.5093, allocations: 333 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.5093, allocations: 0 / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.77e-05/0.5093, allocations: 12 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.5093, allocations: 8 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005409/0.5099, allocations: 258 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001348/0.5113, allocations: 0.9551 MB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005878/0.5119, allocations: 266.9 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002426/0.5121, allocations: 124.8 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.5121, allocations: 0 / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003806/0.5125, allocations: 183.2 kB / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=32): time 3.076e-06/0.5125, allocations: 0 / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=32): time 0.000768/0.5133, allocations: 357.1 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/0.5134, allocations: 67.39 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.5135, allocations: 203.3 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.461e-05/0.5136, allocations: 37.7 kB / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.87e-05/0.5137, allocations: 156.6 kB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.064e-05/0.5138, allocations: 82.89 kB / 1.025 GB, free: 9.934 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.5139, allocations: 82.12 kB / 1.025 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.514, allocations: 338.8 kB / 1.026 GB, free: 9.504 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002554/0.5142, allocations: 112.8 kB / 1.026 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002741/0.5145, allocations: 161.5 kB / 1.026 GB, free: 9.219 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004647/0.515, allocations: 270.6 kB / 1.026 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.515, allocations: 0 / 1.026 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000649/0.5157, allocations: 370.5 kB / 1.027 GB, free: 8.555 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.994e-05/0.5157, allocations: 37.84 kB / 1.027 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.5157, allocations: 4 kB / 1.027 GB, free: 8.508 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.5157, allocations: 4 kB / 1.027 GB, free: 8.504 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.5159, allocations: 43.91 kB / 1.027 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.5159, allocations: 0 / 1.027 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.5162, allocations: 55.56 kB / 1.027 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.372e-05/0.5162, allocations: 15.98 kB / 1.027 GB, free: 8.391 MB / 0.7794 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.condition,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.condition,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.0001659/0.5164, allocations: 189.6 kB / 1.027 GB, free: 8.195 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.155e-05/0.5164, allocations: 15.81 kB / 1.027 GB, free: 8.18 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006021/0.5171, allocations: 299.2 kB / 1.027 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.5171, allocations: 4 kB / 1.027 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.5171, allocations: 4 kB / 1.027 GB, free: 7.875 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.5171, allocations: 0 / 1.027 GB, free: 7.875 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001044/0.5181, allocations: 0.7491 MB / 1.028 GB, free: 7.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.5182, allocations: 0 / 1.028 GB, free: 7.07 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.5183, allocations: 35.91 kB / 1.028 GB, free: 7.035 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.5183, allocations: 4 kB / 1.028 GB, free: 7.031 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.201e-05/0.5183, allocations: 11.94 kB / 1.028 GB, free: 7.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.5183, allocations: 0 / 1.028 GB, free: 7.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.5184, allocations: 0 / 1.028 GB, free: 7.02 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005592/0.5189, allocations: 367.4 kB / 1.028 GB, free: 6.645 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.274e-05/0.519, allocations: 100.8 kB / 1.029 GB, free: 6.527 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.839e-05/0.519, allocations: 7.938 kB / 1.029 GB, free: 6.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002431/0.5193, allocations: 39.89 kB / 1.029 GB, free: 6.48 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.871e-05/0.5194, allocations: 47.89 kB / 1.029 GB, free: 6.434 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-05/0.5194, allocations: 4 kB / 1.029 GB, free: 6.43 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.118e-05/0.5195, allocations: 135.2 kB / 1.029 GB, free: 6.297 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5195, allocations: 3.938 kB / 1.029 GB, free: 6.293 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003127/0.5198, allocations: 67.84 kB / 1.029 GB, free: 6.227 MB / 0.7794 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.localActive,wseCon.off.localActive,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.newActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.condition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.active,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.condition,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.0008483/0.5207, allocations: 0.93 MB / 1.03 GB, free: 5.273 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000682/0.5214, allocations: 355 kB / 1.03 GB, free: 4.914 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.5214, allocations: 0 / 1.03 GB, free: 4.914 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002741/0.5217, allocations: 135.9 kB / 1.03 GB, free: 4.781 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.522, allocations: 27.98 kB / 1.03 GB, free: 4.754 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003249/0.5253, allocations: 2.715 MB / 1.033 GB, free: 1.918 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.5256, allocations: 0.7525 MB / 1.034 GB, free: 1.141 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001181/0.5257, allocations: 38.28 kB / 1.034 GB, free: 1.102 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001569/0.5258, allocations: 88.66 kB / 1.034 GB, free: 1.016 MB / 0.7794 GB Notification: Performance of SimCode: time 2.71e-07/0.5259, allocations: 0 / 1.034 GB, free: 1.016 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4534/0.9792, allocations: 5.386 MB / 1.039 GB, free: 11.81 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002318/0.9795, allocations: 225.4 kB / 1.039 GB, free: 11.55 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.891/2.871, allocations: 3.094 kB / 1.039 GB, free: 11.55 MB / 0.795 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > 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