Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.ChillerSwitch,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",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.000965/0.000965, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001021/0.001021, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 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: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.384/2.384, allocations: 390.3 MB / 0.6653 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004995/0.0004996, allocations: 12 kB / 0.8146 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8165/0.8171, allocations: 142.3 MB / 0.9536 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001994/0.8191, allocations: 1.351 MB / 0.9549 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007029/0.8199, allocations: 427.1 kB / 0.9553 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.132e-05/0.8199, allocations: 1.25 kB / 0.9553 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.045e-05/0.8199, allocations: 3.938 kB / 0.9553 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.864e-05/0.82, allocations: 14.78 kB / 0.9553 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001762/0.8202, allocations: 24.22 kB / 0.9554 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001081/0.8203, allocations: 51.44 kB / 0.9554 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.8205, allocations: 22.61 kB / 0.9554 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.8206, allocations: 27.91 kB / 0.9555 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.8208, allocations: 29.88 kB / 0.9555 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.091e-05/0.8208, allocations: 2.438 kB / 0.9555 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.815e-05/0.8208, allocations: 2.656 kB / 0.9555 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.114e-05/0.8208, allocations: 13.14 kB / 0.9555 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.029e-05/0.8209, allocations: 30.58 kB / 0.9555 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001115/0.821, allocations: 56.12 kB / 0.9556 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.821, allocations: 0 / 0.9556 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of FrontEnd: time 4.108e-06/0.821, allocations: 4 kB / 0.9556 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.231e-06/0.821, allocations: 3.938 kB / 0.9556 GB, free: 6.418 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005606/0.8216, allocations: 384.4 kB / 0.956 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.956e-05/0.8217, allocations: 10.12 kB / 0.956 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.728e-05/0.8217, allocations: 40.02 kB / 0.956 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.452e-05/0.8218, allocations: 12.39 kB / 0.956 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.8219, allocations: 172.4 kB / 0.9562 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.8219, allocations: 9.438 kB / 0.9562 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.55e-05/0.822, allocations: 2.844 kB / 0.9562 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002334/0.8222, allocations: 102.5 kB / 0.9563 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.8222, allocations: 1.062 kB / 0.9563 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.8222, allocations: 0 / 0.9563 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.8223, allocations: 5.438 kB / 0.9563 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001877/0.8224, allocations: 58.89 kB / 0.9564 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004971/0.823, allocations: 333.2 kB / 0.9567 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.8231, allocations: 53.94 kB / 0.9567 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.8231, allocations: 5.172 kB / 0.9567 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.8232, allocations: 31.75 kB / 0.9568 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.8232, allocations: 4 kB / 0.9568 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.000371/0.8236, allocations: 117.7 kB / 0.9569 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.8236, allocations: 78.48 kB / 0.957 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.771e-05/0.8237, allocations: 138.7 kB / 0.9571 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.8237, allocations: 27.14 kB / 0.9571 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.922e-05/0.8238, allocations: 98.78 kB / 0.9572 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.827e-05/0.8238, allocations: 7.125 kB / 0.9572 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.503e-06/0.8238, allocations: 4 kB / 0.9572 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.171e-05/0.8239, allocations: 316 kB / 0.9575 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.899e-05/0.824, allocations: 28.92 kB / 0.9576 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.483e-05/0.8241, allocations: 44.2 kB / 0.9576 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.379e-05/0.8242, allocations: 23.92 kB / 0.9576 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.8242, allocations: 0 / 0.9576 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000216/0.8244, allocations: 105.7 kB / 0.9577 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.8245, allocations: 5.5 kB / 0.9577 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.8245, allocations: 0 / 0.9577 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.8245, allocations: 1.031 kB / 0.9577 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.8246, allocations: 12.73 kB / 0.9577 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.8246, allocations: 0 / 0.9577 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.824e-05/0.8247, allocations: 19.17 kB / 0.9578 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.8247, allocations: 1.25 kB / 0.9578 GB, free: 4.344 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.333e-05/0.8248, allocations: 118.6 kB / 0.9579 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.162e-05/0.8249, allocations: 15.31 kB / 0.9579 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.649e-05/0.8249, allocations: 10.59 kB / 0.9579 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.748e-06/0.8249, allocations: 5.25 kB / 0.9579 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.8249, allocations: 192 / 0.9579 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.8249, allocations: 4 kB / 0.9579 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001627/0.8251, allocations: 188.1 kB / 0.9581 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.8251, allocations: 4 kB / 0.9581 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.539e-05/0.8252, allocations: 17.39 kB / 0.9581 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.8252, allocations: 0 / 0.9581 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.8252, allocations: 5.078 kB / 0.9581 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.8252, allocations: 3.938 kB / 0.9581 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.8252, allocations: 1.062 kB / 0.9581 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002556/0.8255, allocations: 186.4 kB / 0.9583 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.683e-05/0.8256, allocations: 82.2 kB / 0.9584 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.332e-05/0.8256, allocations: 1.125 kB / 0.9584 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.8257, allocations: 23.55 kB / 0.9584 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.467e-05/0.8258, allocations: 8.047 kB / 0.9584 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.8258, allocations: 8.859 kB / 0.9584 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.461e-05/0.8258, allocations: 102.2 kB / 0.9585 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/0.8258, allocations: 0 / 0.9585 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002294/0.8261, allocations: 10.59 kB / 0.9585 GB, free: 3.59 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004292/0.8265, allocations: 0.7268 MB / 0.9592 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.00023/0.8268, allocations: 58.16 kB / 0.9593 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.8268, allocations: 0 / 0.9593 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.504e-05/0.8269, allocations: 38.94 kB / 0.9593 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002117/0.8271, allocations: 10.77 kB / 0.9593 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000974/0.8281, allocations: 0.5812 MB / 0.9599 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001628/0.8282, allocations: 0.6985 MB / 0.9606 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.995e-05/0.8283, allocations: 2.562 kB / 0.9606 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.247e-05/0.8283, allocations: 25.52 kB / 0.9606 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.8284, allocations: 0 / 0.9606 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01148/0.8398, allocations: 1.705 MB / 0.9623 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001535/0.84, allocations: 213.9 kB / 0.9625 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.689/2.529, allocations: 0 / 0.9625 GB, free: 0.6484 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat does not exist to compare? outputFormat=mat