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.001505/0.001505, allocations: 112.5 kB / 15.73 MB, free: 68 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 192.7 kB / 16.66 MB, free: 6.586 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.58/2.58, allocations: 437 MB / 0.7105 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 67.89 kB / 1.018 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.248, allocations: 151.6 MB / 1.166 GB, free: 7.348 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003056/0.2511, allocations: 1.999 MB / 1.168 GB, free: 5.328 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001089/0.2522, allocations: 0.6936 MB / 1.169 GB, free: 4.629 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.489e-05/0.2524, allocations: 4 kB / 1.169 GB, free: 4.625 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.2525, allocations: 35.61 kB / 1.169 GB, free: 4.59 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.656e-05/0.2526, allocations: 43.53 kB / 1.169 GB, free: 4.547 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003902/0.253, allocations: 163.8 kB / 1.169 GB, free: 4.387 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004169/0.2534, allocations: 403.2 kB / 1.169 GB, free: 3.992 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003182/0.2538, allocations: 252.1 kB / 1.17 GB, free: 3.746 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.2539, allocations: 135.5 kB / 1.17 GB, free: 3.613 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001602/0.2541, allocations: 151.3 kB / 1.17 GB, free: 3.465 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 5.752e-05/0.2542, allocations: 40 kB / 1.17 GB, free: 3.426 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.056e-05/0.2542, allocations: 48 kB / 1.17 GB, free: 3.379 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 7.556e-05/0.2543, allocations: 79.81 kB / 1.17 GB, free: 3.301 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.00014/0.2545, allocations: 155.2 kB / 1.17 GB, free: 3.148 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004275/0.2549, allocations: 434.3 kB / 1.171 GB, free: 2.723 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.2549, allocations: 0 / 1.171 GB, free: 2.723 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.051e-06/0.2549, allocations: 0 / 1.171 GB, free: 2.723 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.2549, allocations: 0 / 1.171 GB, free: 2.723 MB / 0.92 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.0008884/0.2558, allocations: 0.6103 MB / 1.171 GB, free: 2.062 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.2559, allocations: 16.02 kB / 1.171 GB, free: 2.047 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.02e-05/0.256, allocations: 66.73 kB / 1.171 GB, free: 1.973 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.111e-05/0.256, allocations: 36.73 kB / 1.171 GB, free: 1.938 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003211/0.2564, allocations: 275.8 kB / 1.172 GB, free: 1.629 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.46e-05/0.2564, allocations: 25.03 kB / 1.172 GB, free: 1.605 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.775e-05/0.2565, allocations: 32.38 kB / 1.172 GB, free: 1.574 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006388/0.2571, allocations: 337 kB / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.2571, allocations: 4 kB / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.262e-05/0.2572, allocations: 12 kB / 1.172 GB, free: 1.215 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.2572, allocations: 8 kB / 1.172 GB, free: 1.207 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005955/0.2578, allocations: 254 kB / 1.172 GB, free: 0.957 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001403/0.2592, allocations: 0.9437 MB / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006523/0.2599, allocations: 274.9 kB / 1.173 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002604/0.2601, allocations: 125.3 kB / 1.174 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.2602, allocations: 4 kB / 1.174 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003902/0.2606, allocations: 183.2 kB / 1.174 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=32): time 2.044e-06/0.2606, allocations: 0 / 1.174 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of matching and sorting (n=32): time 0.0008395/0.2614, allocations: 358.1 kB / 1.174 GB, free: 15 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.2615, allocations: 59.39 kB / 1.174 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.2617, allocations: 207.3 kB / 1.174 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.419e-05/0.2617, allocations: 49.69 kB / 1.174 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.2618, allocations: 156.8 kB / 1.175 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.797e-05/0.2619, allocations: 83.33 kB / 1.175 GB, free: 14.42 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.262, allocations: 82.11 kB / 1.175 GB, free: 14.33 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.2622, allocations: 342.8 kB / 1.175 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002757/0.2624, allocations: 112.8 kB / 1.175 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002955/0.2627, allocations: 165.5 kB / 1.175 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004913/0.2632, allocations: 258.4 kB / 1.176 GB, free: 13.42 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2633, allocations: 4 kB / 1.176 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006959/0.264, allocations: 370.9 kB / 1.176 GB, free: 13.04 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/0.264, allocations: 33.7 kB / 1.176 GB, free: 13 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.264, allocations: 0 / 1.176 GB, free: 13 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/0.264, allocations: 11.92 kB / 1.176 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002122/0.2643, allocations: 43.91 kB / 1.176 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.2643, allocations: 8.156 kB / 1.176 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002699/0.2646, allocations: 51.75 kB / 1.176 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.246e-05/0.2646, allocations: 12 kB / 1.176 GB, free: 12.88 MB / 0.9356 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.0001768/0.2648, allocations: 181.7 kB / 1.176 GB, free: 12.69 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.747e-05/0.2648, allocations: 23.86 kB / 1.176 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006414/0.2655, allocations: 291.2 kB / 1.177 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/0.2655, allocations: 7.984 kB / 1.177 GB, free: 12.37 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.2655, allocations: 0 / 1.177 GB, free: 12.37 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.2655, allocations: 4 kB / 1.177 GB, free: 12.37 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.2666, allocations: 0.7498 MB / 1.177 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2667, allocations: 0 / 1.177 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000147/0.2668, allocations: 27.92 kB / 1.177 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.2668, allocations: 4 kB / 1.177 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.402e-05/0.2668, allocations: 15.92 kB / 1.177 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.2669, allocations: 4 kB / 1.177 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2669, allocations: 0 / 1.177 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005921/0.2675, allocations: 376.5 kB / 1.178 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.39e-05/0.2675, allocations: 104.8 kB / 1.178 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.212e-05/0.2676, allocations: 15.94 kB / 1.178 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000258/0.2678, allocations: 27.97 kB / 1.178 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.485e-05/0.2679, allocations: 39.94 kB / 1.178 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.881e-05/0.268, allocations: 16 kB / 1.178 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.687e-05/0.2681, allocations: 127.2 kB / 1.178 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2681, allocations: 0 / 1.178 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003348/0.2684, allocations: 71.88 kB / 1.178 GB, free: 10.71 MB / 0.9356 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.0009071/0.2693, allocations: 0.934 MB / 1.179 GB, free: 9.754 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006443/0.27, allocations: 331.3 kB / 1.179 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.27, allocations: 0 / 1.179 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002854/0.2703, allocations: 139.8 kB / 1.179 GB, free: 9.281 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003522/0.2707, allocations: 42.48 kB / 1.179 GB, free: 9.242 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003455/0.2741, allocations: 2.633 MB / 1.182 GB, free: 6.496 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.2745, allocations: 0.7642 MB / 1.183 GB, free: 5.703 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.000115/0.2746, allocations: 30.28 kB / 1.183 GB, free: 5.672 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/0.2748, allocations: 83.41 kB / 1.183 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of SimCode: time 2.61e-07/0.2748, allocations: 0 / 1.183 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02099/0.2958, allocations: 5.653 MB / 1.188 GB, free: 92 kB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.775/8.07, allocations: 6.344 kB / 1.188 GB, free: 88 kB / 0.9356 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 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.csv","/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