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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_9_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.005455/0.005455, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001264/0.001264, allocations: 195.4 kB / 16.67 MB, free: 5.52 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.197/1.197, allocations: 222.9 MB / 240.4 MB, free: 15.17 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.167/2.167, allocations: 390.3 MB / 0.6648 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 67.91 kB / 0.9504 GB, free: 8.102 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6768/0.6781, allocations: 140.4 MB / 1.087 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003062/0.6812, allocations: 2.008 MB / 1.089 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001201/0.6824, allocations: 0.6846 MB / 1.09 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001834/0.6826, allocations: 7.688 kB / 1.09 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.6828, allocations: 34.73 kB / 1.09 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001298/0.6829, allocations: 40.22 kB / 1.09 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000493/0.6834, allocations: 151.4 kB / 1.09 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005019/0.6839, allocations: 411.4 kB / 1.091 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004017/0.6843, allocations: 254.9 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002079/0.6845, allocations: 133.1 kB / 1.091 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002118/0.6848, allocations: 149.9 kB / 1.091 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.497e-05/0.6848, allocations: 39.75 kB / 1.091 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.685, allocations: 45.41 kB / 1.091 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.289e-05/0.6851, allocations: 81.88 kB / 1.091 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.6852, allocations: 162.7 kB / 1.092 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005051/0.6857, allocations: 435.4 kB / 1.092 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.6857, allocations: 1.281 kB / 1.092 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.393e-06/0.6857, allocations: 0 / 1.092 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.288e-05/0.6858, allocations: 0 / 1.092 GB, free: 2.242 MB / 0.8575 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.0009778/0.6867, allocations: 0.5984 MB / 1.093 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.6868, allocations: 10.19 kB / 1.093 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.855e-05/0.6869, allocations: 63.67 kB / 1.093 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.016e-05/0.687, allocations: 33.56 kB / 1.093 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003281/0.6873, allocations: 272.7 kB / 1.093 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.977e-05/0.6874, allocations: 29.33 kB / 1.093 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.803e-05/0.6874, allocations: 34.61 kB / 1.093 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006751/0.6881, allocations: 337.2 kB / 1.093 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.6881, allocations: 4.781 kB / 1.093 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.207e-05/0.6882, allocations: 11.22 kB / 1.093 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.6882, allocations: 11.8 kB / 1.093 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000622/0.6888, allocations: 246.9 kB / 1.094 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.6903, allocations: 0.951 MB / 1.094 GB, free: 488 kB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006686/0.691, allocations: 268.2 kB / 1.095 GB, free: 376 kB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002641/0.6913, allocations: 121.7 kB / 1.095 GB, free: 328 kB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.6913, allocations: 2.438 kB / 1.095 GB, free: 328 kB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003917/0.6917, allocations: 183.3 kB / 1.095 GB, free: 232 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=32): time 1.884e-06/0.6917, allocations: 1.062 kB / 1.095 GB, free: 232 kB / 0.8575 GB Notification: Performance of matching and sorting (n=32): time 0.0008834/0.6926, allocations: 355.3 kB / 1.095 GB, free: 92 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.6927, allocations: 61.95 kB / 1.095 GB, free: 24 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002167/0.6929, allocations: 198.2 kB / 1.096 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.527e-05/0.6929, allocations: 40.94 kB / 1.096 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.693, allocations: 161.5 kB / 1.096 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.17e-05/0.6931, allocations: 81.36 kB / 1.096 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001383/0.6933, allocations: 95.67 kB / 1.096 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.6934, allocations: 336.9 kB / 1.096 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000294/0.6937, allocations: 107.8 kB / 1.096 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003265/0.694, allocations: 166.8 kB / 1.097 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005254/0.6946, allocations: 261.8 kB / 1.097 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.6946, allocations: 0.5312 kB / 1.097 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007471/0.6953, allocations: 370.8 kB / 1.097 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.637e-05/0.6954, allocations: 34.22 kB / 1.097 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.6954, allocations: 0.9375 kB / 1.097 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.6954, allocations: 3 kB / 1.097 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002113/0.6956, allocations: 44.17 kB / 1.097 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.6957, allocations: 3.641 kB / 1.097 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002877/0.696, allocations: 55.11 kB / 1.097 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.153e-05/0.696, allocations: 16.22 kB / 1.097 GB, free: 14.71 MB / 0.8731 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.0001947/0.6962, allocations: 182.3 kB / 1.097 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.159e-05/0.6963, allocations: 21.62 kB / 1.098 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006731/0.6969, allocations: 296.9 kB / 1.098 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/0.697, allocations: 4.812 kB / 1.098 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.697, allocations: 0 / 1.098 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.697, allocations: 2.844 kB / 1.098 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001194/0.6982, allocations: 0.7462 MB / 1.099 GB, free: 13.94 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.6982, allocations: 4 kB / 1.099 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001484/0.6984, allocations: 33.92 kB / 1.099 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.6984, allocations: 1.75 kB / 1.099 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.262e-05/0.6984, allocations: 11.53 kB / 1.099 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.6984, allocations: 2.219 kB / 1.099 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.6984, allocations: 0 / 1.099 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006107/0.699, allocations: 374.8 kB / 1.099 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.369e-05/0.6991, allocations: 104.6 kB / 1.099 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.056e-05/0.6991, allocations: 11.5 kB / 1.099 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002854/0.6994, allocations: 29.72 kB / 1.099 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.6996, allocations: 41.77 kB / 1.099 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.408e-05/0.6996, allocations: 8.156 kB / 1.099 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001078/0.6997, allocations: 134 kB / 1.099 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.865e-06/0.6997, allocations: 4 kB / 1.099 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003592/0.7001, allocations: 74.77 kB / 1.099 GB, free: 13.45 MB / 0.8731 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.0009348/0.701, allocations: 0.9242 MB / 1.1 GB, free: 12.69 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007128/0.7017, allocations: 337.3 kB / 1.101 GB, free: 12.54 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/0.7018, allocations: 0 / 1.101 GB, free: 12.54 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003097/0.7021, allocations: 146.8 kB / 1.101 GB, free: 12.49 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003545/0.7024, allocations: 44.31 kB / 1.101 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003812/0.7063, allocations: 2.62 MB / 1.103 GB, free: 10.65 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.7066, allocations: 0.7601 MB / 1.104 GB, free: 9.941 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001258/0.7067, allocations: 29.73 kB / 1.104 GB, free: 9.934 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001577/0.7069, allocations: 89.45 kB / 1.104 GB, free: 9.879 MB / 0.8731 GB Notification: Performance of SimCode: time 5.51e-07/0.7069, allocations: 0 / 1.104 GB, free: 9.879 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03524/0.7421, allocations: 5.641 MB / 1.11 GB, free: 9.195 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.681/9.424, allocations: 16.44 kB / 1.11 GB, free: 9.184 MB / 0.8731 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > 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