Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",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.001034/0.001034, allocations: 92.16 kB / 15.06 MB, free: 1.098 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: 172.7 kB / 15.95 MB, free: 208 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.461/1.461, allocations: 223.3 MB / 240 MB, free: 5.207 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.814/2.814, allocations: 409.4 MB / 0.684 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003537/0.0003537, allocations: 8 kB / 0.8378 GB, free: 6.484 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7277/0.728, allocations: 146.8 MB / 0.9811 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002193/0.7303, allocations: 1.44 MB / 0.9826 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001387/0.7317, allocations: 0.8621 MB / 0.9834 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.861e-05/0.7318, allocations: 0 / 0.9834 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000511/0.7323, allocations: 161.7 kB / 0.9835 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003328/0.7327, allocations: 136.9 kB / 0.9837 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004443/0.7331, allocations: 166.5 kB / 0.9838 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002586/0.7334, allocations: 207.5 kB / 0.984 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.7335, allocations: 41.81 kB / 0.9841 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001487/0.7337, allocations: 79.67 kB / 0.9842 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001994/0.7339, allocations: 135.5 kB / 0.9843 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.827e-05/0.7339, allocations: 8 kB / 0.9843 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.859e-05/0.734, allocations: 28 kB / 0.9843 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.739e-05/0.7341, allocations: 75.73 kB / 0.9844 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.965e-05/0.7342, allocations: 61.58 kB / 0.9844 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002831/0.7345, allocations: 285.6 kB / 0.9847 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.7345, allocations: 0 / 0.9847 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.958e-06/0.7345, allocations: 0 / 0.9847 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.7345, allocations: 3.938 kB / 0.9847 GB, free: 2.555 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000736/0.7352, allocations: 0.5641 MB / 0.9853 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.7353, allocations: 8.031 kB / 0.9853 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.003e-05/0.7354, allocations: 42.55 kB / 0.9853 GB, free: 1.883 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.313e-05/0.7354, allocations: 27.62 kB / 0.9853 GB, free: 1.855 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005559/0.736, allocations: 389.3 kB / 0.9857 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.736, allocations: 15.94 kB / 0.9857 GB, free: 1.418 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.677e-05/0.736, allocations: 4 kB / 0.9857 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001905/0.7362, allocations: 85.55 kB / 0.9858 GB, free: 1.324 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.7362, allocations: 0 / 0.9858 GB, free: 1.324 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.7363, allocations: 4 kB / 0.9858 GB, free: 1.32 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.7363, allocations: 0 / 0.9858 GB, free: 1.32 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001267/0.7364, allocations: 51.97 kB / 0.9859 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005924/0.737, allocations: 488.3 kB / 0.9863 GB, free: 0.7422 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001203/0.7371, allocations: 58.53 kB / 0.9864 GB, free: 0.6758 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.259e-05/0.7372, allocations: 16.92 kB / 0.9864 GB, free: 0.6562 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.7372, allocations: 4 kB / 0.9864 GB, free: 0.6523 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.7373, allocations: 38.48 kB / 0.9865 GB, free: 0.6055 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.7373, allocations: 3.938 kB / 0.9865 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0003064/0.7376, allocations: 109.3 kB / 0.9866 GB, free: 500 kB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.7376, allocations: 51.41 kB / 0.9866 GB, free: 436 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006244/0.7383, allocations: 0.5484 MB / 0.9871 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.7383, allocations: 25.7 kB / 0.9872 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.7384, allocations: 175.9 kB / 0.9873 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.134e-05/0.7384, allocations: 7.906 kB / 0.9873 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.626e-06/0.7385, allocations: 4 kB / 0.9873 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001547/0.7386, allocations: 350.8 kB / 0.9877 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.812e-05/0.7387, allocations: 8 kB / 0.9877 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.516e-05/0.7387, allocations: 19.98 kB / 0.9877 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.046e-05/0.7388, allocations: 19.92 kB / 0.9877 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.7388, allocations: 0 / 0.9877 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001617/0.739, allocations: 97.3 kB / 0.9878 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.739, allocations: 4 kB / 0.9878 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.739, allocations: 0 / 0.9878 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.739, allocations: 4 kB / 0.9878 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.724e-05/0.7391, allocations: 4.109 kB / 0.9878 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.7391, allocations: 3.938 kB / 0.9878 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.046e-05/0.7392, allocations: 7.984 kB / 0.9878 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.7392, allocations: 0 / 0.9878 GB, free: 15.13 MB / 0.7481 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 (3): * Single equations (assignments): 3 * 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 0.0001626/0.7394, allocations: 186.3 kB / 0.988 GB, free: 14.94 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.878e-05/0.7394, allocations: 27.62 kB / 0.988 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000241/0.7397, allocations: 112.1 kB / 0.9882 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.7397, allocations: 0 / 0.9882 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.7397, allocations: 0 / 0.9882 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.7397, allocations: 4 kB / 0.9882 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003039/0.74, allocations: 289.5 kB / 0.9884 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.74, allocations: 0 / 0.9884 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.244e-05/0.7401, allocations: 11.98 kB / 0.9884 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.7401, allocations: 0 / 0.9884 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-06/0.7401, allocations: 0 / 0.9884 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.7401, allocations: 0 / 0.9884 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.7401, allocations: 0 / 0.9884 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002638/0.7404, allocations: 199.4 kB / 0.9886 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.7405, allocations: 124.7 kB / 0.9888 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.938e-05/0.7406, allocations: 0 / 0.9888 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.859e-05/0.7406, allocations: 7.984 kB / 0.9888 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.203e-05/0.7407, allocations: 48 / 0.9888 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.7407, allocations: 7.984 kB / 0.9888 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004574/0.7412, allocations: 415.1 kB / 0.9892 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7412, allocations: 0 / 0.9892 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002694/0.7414, allocations: 35.84 kB / 0.9892 GB, free: 13.64 MB / 0.7481 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 (3): * Single equations (assignments): 3 * 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.001565/0.743, allocations: 0.981 MB / 0.9902 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0001642/0.7432, allocations: 39.91 kB / 0.9902 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.7432, allocations: 0 / 0.9902 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 5.018e-05/0.7433, allocations: 16 kB / 0.9902 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004351/0.7437, allocations: 47.06 kB / 0.9903 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003015/0.7467, allocations: 1.926 MB / 0.9921 GB, free: 10.68 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003941/0.7472, allocations: 0.7873 MB / 0.9929 GB, free: 9.867 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001212/0.7473, allocations: 42.92 kB / 0.9929 GB, free: 9.828 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.7474, allocations: 83.41 kB / 0.993 GB, free: 9.746 MB / 0.7481 GB Notification: Performance of SimCode: time 7.71e-07/0.7474, allocations: 0 / 0.993 GB, free: 9.746 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01705/0.7645, allocations: 5.424 MB / 0.9983 GB, free: 4.551 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002117/0.7648, allocations: 266.6 kB / 0.9986 GB, free: 4.195 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.917/2.681, allocations: 0 / 0.9986 GB, free: 4.195 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat does not exist to compare? outputFormat=mat