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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001717/0.001717, allocations: 107.4 kB / 15.99 MB, free: 6.359 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.001636/0.001636, allocations: 189.2 kB / 16.91 MB, free: 6.195 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.469/1.469, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.816/2.816, allocations: 482.4 MB / 0.755 GB, free: 7.105 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002079/0.002079, allocations: 63.47 kB / 0.924 GB, free: 300 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7976/0.7997, allocations: 162.2 MB / 1.082 GB, free: 1.609 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003307/0.803, allocations: 2.087 MB / 1.084 GB, free: 160 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001354/0.8044, allocations: 0.6931 MB / 1.085 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.8046, allocations: 4.25 kB / 1.085 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001507/0.8047, allocations: 19.58 kB / 1.085 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001056/0.8048, allocations: 30.44 kB / 1.085 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000454/0.8053, allocations: 144.3 kB / 1.085 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0005275/0.8059, allocations: 400.5 kB / 1.086 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004139/0.8063, allocations: 257.3 kB / 1.086 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001887/0.8065, allocations: 133.4 kB / 1.086 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001966/0.8067, allocations: 149.3 kB / 1.086 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.374e-05/0.8068, allocations: 40.28 kB / 1.086 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001018/0.8069, allocations: 53.52 kB / 1.086 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.743e-05/0.807, allocations: 85.06 kB / 1.086 GB, free: 15 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.8072, allocations: 152 kB / 1.087 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004291/0.8076, allocations: 338.9 kB / 1.087 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.8076, allocations: 0 / 1.087 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.693e-06/0.8076, allocations: 1.031 kB / 1.087 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.168e-05/0.8076, allocations: 0 / 1.087 GB, free: 14.78 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.00108/0.8087, allocations: 0.6002 MB / 1.087 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.8088, allocations: 13.75 kB / 1.087 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.369e-05/0.8089, allocations: 33.84 kB / 1.087 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003554/0.8092, allocations: 261.9 kB / 1.088 GB, free: 14 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.121e-05/0.8093, allocations: 27.44 kB / 1.088 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.583e-05/0.8093, allocations: 31.36 kB / 1.088 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007274/0.8101, allocations: 341.7 kB / 1.088 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.8101, allocations: 1.5 kB / 1.088 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.668e-05/0.8101, allocations: 11.19 kB / 1.088 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.8102, allocations: 11.03 kB / 1.088 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006037/0.8108, allocations: 246.7 kB / 1.088 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001581/0.8124, allocations: 0.967 MB / 1.089 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006427/0.813, allocations: 268.2 kB / 1.09 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002676/0.8133, allocations: 125.3 kB / 1.09 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.8133, allocations: 2.562 kB / 1.09 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004936/0.8138, allocations: 179.7 kB / 1.09 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=32): time 2.235e-06/0.8138, allocations: 1.156 kB / 1.09 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of matching and sorting (n=32): time 0.0008642/0.8147, allocations: 352 kB / 1.09 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.633e-05/0.8148, allocations: 58.19 kB / 1.09 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000226/0.815, allocations: 206 kB / 1.09 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.077e-05/0.8151, allocations: 39.94 kB / 1.091 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.8152, allocations: 150.2 kB / 1.091 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.328e-05/0.8153, allocations: 84.38 kB / 1.091 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/0.8154, allocations: 89.25 kB / 1.091 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001733/0.8156, allocations: 340 kB / 1.091 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002698/0.8159, allocations: 112.2 kB / 1.091 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000308/0.8162, allocations: 162.4 kB / 1.091 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005053/0.8167, allocations: 261.9 kB / 1.092 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.8167, allocations: 0 / 1.092 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007337/0.8175, allocations: 371.5 kB / 1.092 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.289e-05/0.8175, allocations: 36.88 kB / 1.092 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.8176, allocations: 1.812 kB / 1.092 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.8176, allocations: 7.156 kB / 1.092 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002233/0.8178, allocations: 44.05 kB / 1.092 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.258e-06/0.8178, allocations: 4.594 kB / 1.092 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002724/0.8181, allocations: 54.58 kB / 1.092 GB, free: 11.33 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.175e-05/0.8182, allocations: 23.69 kB / 1.092 GB, free: 11.32 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.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.0002168/0.8184, allocations: 177.1 kB / 1.092 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.967e-05/0.8184, allocations: 22.94 kB / 1.092 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000675/0.8191, allocations: 302.5 kB / 1.093 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.8191, allocations: 6.531 kB / 1.093 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.8191, allocations: 1.797 kB / 1.093 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.8191, allocations: 1.266 kB / 1.093 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001267/0.8204, allocations: 0.7445 MB / 1.093 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.8204, allocations: 0 / 1.093 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001447/0.8206, allocations: 38 kB / 1.093 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.8206, allocations: 2.938 kB / 1.093 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/0.8206, allocations: 6.25 kB / 1.093 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.78e-06/0.8206, allocations: 5.922 kB / 1.093 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.8206, allocations: 0.5 kB / 1.093 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006384/0.8213, allocations: 370 kB / 1.094 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.637e-05/0.8214, allocations: 96.34 kB / 1.094 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.307e-05/0.8214, allocations: 11.58 kB / 1.094 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002589/0.8217, allocations: 34.89 kB / 1.094 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.8218, allocations: 40.61 kB / 1.094 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.766e-05/0.8219, allocations: 8.281 kB / 1.094 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001366/0.822, allocations: 134.5 kB / 1.094 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.822, allocations: 0 / 1.094 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003965/0.8224, allocations: 73.8 kB / 1.094 GB, free: 10.06 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.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.0002099/0.8226, allocations: 128.1 kB / 1.094 GB, free: 9.957 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008023/0.8234, allocations: 351.8 kB / 1.095 GB, free: 9.797 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.8235, allocations: 320 / 1.095 GB, free: 9.797 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002891/0.8237, allocations: 133.4 kB / 1.095 GB, free: 9.758 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.8241, allocations: 43.38 kB / 1.095 GB, free: 9.734 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001024/0.8252, allocations: 0.5753 MB / 1.095 GB, free: 9.316 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004227/0.8256, allocations: 0.7612 MB / 1.096 GB, free: 8.609 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.8257, allocations: 27.66 kB / 1.096 GB, free: 8.602 MB / 0.8419 GB Notification: Performance of SimCode: time 4.21e-07/0.8257, allocations: 0 / 1.096 GB, free: 8.602 MB / 0.8419 GB Notification: Performance of Templates: time 0.007189/0.8329, allocations: 3.47 MB / 1.1 GB, free: 8.223 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=400 -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