Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.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.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU",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.0008816/0.0008813, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0009209/0.000921, allocations: 168.7 kB / 15.95 MB, free: 204 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.493/1.493, allocations: 223.2 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.662/2.662, allocations: 409.4 MB / 0.684 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003806/0.0003807, allocations: 11.94 kB / 0.8378 GB, free: 6.488 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8178/0.8182, allocations: 146.8 MB / 0.9811 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.00151/0.8197, allocations: 1.14 MB / 0.9823 GB, free: 5.113 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0005094/0.8203, allocations: 359.5 kB / 0.9826 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.384e-05/0.8203, allocations: 4 kB / 0.9826 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.061e-05/0.8203, allocations: 4 kB / 0.9826 GB, free: 4.75 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.271e-05/0.8204, allocations: 3.938 kB / 0.9826 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 7.168e-05/0.8204, allocations: 3.984 kB / 0.9826 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 4.048e-05/0.8205, allocations: 19.94 kB / 0.9826 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.57e-05/0.8205, allocations: 7.984 kB / 0.9826 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.697e-05/0.8206, allocations: 15.86 kB / 0.9827 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 3.866e-05/0.8207, allocations: 11.98 kB / 0.9827 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.166e-05/0.8207, allocations: 3.938 kB / 0.9827 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.642e-06/0.8207, allocations: 7.938 kB / 0.9827 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.392e-06/0.8207, allocations: 4 kB / 0.9827 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.053e-05/0.8207, allocations: 25.7 kB / 0.9827 GB, free: 4.641 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 3.499e-05/0.8208, allocations: 19.97 kB / 0.9827 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.8208, allocations: 0 / 0.9827 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.343e-06/0.8208, allocations: 0 / 0.9827 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 2.144e-06/0.8208, allocations: 0 / 0.9827 GB, free: 4.621 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003165/0.8211, allocations: 329.6 kB / 0.983 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 2.748e-05/0.8211, allocations: 12.03 kB / 0.9831 GB, free: 4.242 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.336e-05/0.8212, allocations: 34.56 kB / 0.9831 GB, free: 4.199 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.679e-05/0.8212, allocations: 7.906 kB / 0.9831 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.769e-05/0.8213, allocations: 171 kB / 0.9833 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.753e-06/0.8213, allocations: 0 / 0.9833 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.274e-06/0.8213, allocations: 7.922 kB / 0.9833 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.315e-05/0.8214, allocations: 49.64 kB / 0.9833 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.09e-06/0.8214, allocations: 0 / 0.9833 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.749e-06/0.8214, allocations: 0 / 0.9833 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.355e-06/0.8215, allocations: 0 / 0.9833 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.343e-05/0.8215, allocations: 23.98 kB / 0.9833 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002394/0.8218, allocations: 244.9 kB / 0.9836 GB, free: 3.609 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 7.644e-05/0.8219, allocations: 42.5 kB / 0.9836 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.234e-05/0.8219, allocations: 20.91 kB / 0.9836 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.822, allocations: 0 / 0.9836 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.822, allocations: 34.56 kB / 0.9837 GB, free: 3.492 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 7.91e-07/0.822, allocations: 0 / 0.9837 GB, free: 3.492 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.00023/0.8222, allocations: 65.8 kB / 0.9837 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.706e-05/0.8223, allocations: 55.41 kB / 0.9838 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.798e-05/0.8224, allocations: 105.8 kB / 0.9839 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.8224, allocations: 25.7 kB / 0.9839 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.887e-05/0.8224, allocations: 92.03 kB / 0.984 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.485e-05/0.8224, allocations: 3.984 kB / 0.984 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.949e-06/0.8225, allocations: 4 kB / 0.984 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.8226, allocations: 310.8 kB / 0.9843 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.513e-05/0.8226, allocations: 19.98 kB / 0.9843 GB, free: 2.777 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.09e-05/0.8227, allocations: 4 kB / 0.9843 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.602e-05/0.8227, allocations: 19.92 kB / 0.9843 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.8227, allocations: 0 / 0.9843 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001149/0.8228, allocations: 61.55 kB / 0.9844 GB, free: 2.688 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.8229, allocations: 8.094 kB / 0.9844 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.8229, allocations: 7.938 kB / 0.9844 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.8229, allocations: 0 / 0.9844 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.161e-05/0.823, allocations: 4 kB / 0.9844 GB, free: 2.668 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.823, allocations: 3.984 kB / 0.9844 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.398e-05/0.823, allocations: 11.92 kB / 0.9844 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.823, allocations: 256 / 0.9844 GB, free: 2.652 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.061e-05/0.8231, allocations: 105.8 kB / 0.9845 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.322e-05/0.8231, allocations: 11.95 kB / 0.9845 GB, free: 2.527 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.096e-05/0.8232, allocations: 7.531 kB / 0.9846 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.8232, allocations: 4 kB / 0.9846 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.8232, allocations: 0 / 0.9846 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.8232, allocations: 0 / 0.9846 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000156/0.8234, allocations: 161.7 kB / 0.9847 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.8234, allocations: 0 / 0.9847 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.282e-05/0.8234, allocations: 4 kB / 0.9847 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.8234, allocations: 0 / 0.9847 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.006e-06/0.8234, allocations: 3.953 kB / 0.9847 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.8234, allocations: 4 kB / 0.9847 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.8234, allocations: 7.984 kB / 0.9847 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001577/0.8236, allocations: 151.5 kB / 0.9849 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.77e-05/0.8237, allocations: 77.11 kB / 0.9849 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.151e-05/0.8237, allocations: 3.938 kB / 0.985 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.336e-05/0.8237, allocations: 15.97 kB / 0.985 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.825e-05/0.8238, allocations: 0 / 0.985 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.8238, allocations: 0 / 0.985 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.514e-05/0.8238, allocations: 83.28 kB / 0.985 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8238, allocations: 0 / 0.985 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002094/0.8241, allocations: 4 kB / 0.985 GB, free: 1.926 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0004253/0.8245, allocations: 0.6852 MB / 0.9857 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001156/0.8246, allocations: 27.92 kB / 0.9857 GB, free: 1.184 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.8246, allocations: 0 / 0.9857 GB, free: 1.184 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.583e-05/0.8247, allocations: 16.08 kB / 0.9858 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000229/0.8249, allocations: 15.83 kB / 0.9858 GB, free: 1.152 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003959/0.8253, allocations: 155.7 kB / 0.9859 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002319/0.8256, allocations: 0.677 MB / 0.9866 GB, free: 264 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.198e-05/0.8256, allocations: 0 / 0.9866 GB, free: 264 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.547e-05/0.8256, allocations: 15.42 kB / 0.9866 GB, free: 248 kB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.8256, allocations: 4.062 kB / 0.9866 GB, free: 244 kB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01197/0.8376, allocations: 0.9865 MB / 0.9876 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001737/0.8378, allocations: 209.8 kB / 0.9878 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.811/2.649, allocations: 0 / 0.9878 GB, free: 15.2 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat does not exist to compare? outputFormat=mat