Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.LinearPiecewiseTwo,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_10_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.001417/0.001417, allocations: 91.38 kB / 15.36 MB, free: 0.7344 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.008143/0.008143, allocations: 169.9 kB / 16.26 MB, free: 6.68 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.268/1.268, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.465/2.465, allocations: 437.8 MB / 0.7121 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003474/0.0003476, allocations: 12 kB / 0.8729 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5841/0.5845, allocations: 153.8 MB / 1.023 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002022/0.5866, allocations: 1.484 MB / 1.025 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0014/0.588, allocations: 0.8968 MB / 1.025 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.137e-05/0.5881, allocations: 0 / 1.025 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004709/0.5886, allocations: 177.9 kB / 1.026 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003575/0.589, allocations: 141.4 kB / 1.026 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004573/0.5894, allocations: 203.3 kB / 1.026 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002793/0.5897, allocations: 215.6 kB / 1.026 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.5899, allocations: 63.78 kB / 1.026 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000142/0.59, allocations: 71.62 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001899/0.5902, allocations: 131.6 kB / 1.026 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.12e-05/0.5902, allocations: 7.984 kB / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.386e-05/0.5903, allocations: 39.92 kB / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.523e-05/0.5904, allocations: 67.75 kB / 1.027 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.5906, allocations: 124.9 kB / 1.027 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003196/0.5909, allocations: 326.8 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.5909, allocations: 7.984 kB / 1.027 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.352e-06/0.5909, allocations: 0 / 1.027 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.5909, allocations: 4 kB / 1.027 GB, free: 11.94 MB / 0.7794 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.0007159/0.5916, allocations: 0.5565 MB / 1.028 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.5917, allocations: 12.03 kB / 1.028 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.718e-05/0.5917, allocations: 30.75 kB / 1.028 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.738e-05/0.5918, allocations: 36.56 kB / 1.028 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005254/0.5923, allocations: 418.1 kB / 1.028 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.767e-06/0.5924, allocations: 384 / 1.028 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.375e-05/0.5924, allocations: 11.94 kB / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000172/0.5926, allocations: 77.66 kB / 1.028 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.5926, allocations: 3.938 kB / 1.028 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.5926, allocations: 8 kB / 1.028 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.5926, allocations: 0 / 1.028 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001313/0.5927, allocations: 47.97 kB / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006158/0.5934, allocations: 488.5 kB / 1.029 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001353/0.5935, allocations: 50.56 kB / 1.029 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.682e-05/0.5936, allocations: 17.02 kB / 1.029 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.5936, allocations: 7.938 kB / 1.029 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.5936, allocations: 38.56 kB / 1.029 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.5936, allocations: 0 / 1.029 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0002886/0.5939, allocations: 109.2 kB / 1.029 GB, free: 9.871 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.096e-05/0.594, allocations: 51.41 kB / 1.029 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006418/0.5946, allocations: 0.5524 MB / 1.029 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.5947, allocations: 25.7 kB / 1.029 GB, free: 9.219 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.5948, allocations: 183.8 kB / 1.03 GB, free: 9.035 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.824e-05/0.5948, allocations: 7.906 kB / 1.03 GB, free: 9.027 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.341e-05/0.5948, allocations: 9.719 kB / 1.03 GB, free: 9.012 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001342/0.595, allocations: 346.8 kB / 1.03 GB, free: 8.664 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.927e-05/0.595, allocations: 12 kB / 1.03 GB, free: 8.652 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.304e-05/0.5951, allocations: 19.98 kB / 1.03 GB, free: 8.633 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.556e-05/0.5952, allocations: 40.84 kB / 1.03 GB, free: 8.59 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.5952, allocations: 0 / 1.03 GB, free: 8.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001755/0.5954, allocations: 93.23 kB / 1.03 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.5954, allocations: 8 kB / 1.03 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.5954, allocations: 0 / 1.03 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.5954, allocations: 3.938 kB / 1.03 GB, free: 8.48 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.192e-05/0.5955, allocations: 15.98 kB / 1.03 GB, free: 8.465 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.854e-06/0.5955, allocations: 3.984 kB / 1.03 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.633e-05/0.5956, allocations: 8 kB / 1.03 GB, free: 8.453 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.5956, allocations: 0 / 1.03 GB, free: 8.453 MB / 0.7794 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001485/0.5958, allocations: 173.8 kB / 1.03 GB, free: 8.273 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.112e-05/0.5958, allocations: 31.62 kB / 1.03 GB, free: 8.242 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002188/0.596, allocations: 116.1 kB / 1.03 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-06/0.596, allocations: 0 / 1.03 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.5961, allocations: 0 / 1.03 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.5961, allocations: 0 / 1.03 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002681/0.5963, allocations: 285.5 kB / 1.031 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.5963, allocations: 0 / 1.031 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.029e-05/0.5964, allocations: 11.94 kB / 1.031 GB, free: 7.777 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.5964, allocations: 0 / 1.031 GB, free: 7.777 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-06/0.5964, allocations: 3.938 kB / 1.031 GB, free: 7.773 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.5964, allocations: 0 / 1.031 GB, free: 7.773 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.5964, allocations: 4.375 kB / 1.031 GB, free: 7.77 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002041/0.5966, allocations: 199 kB / 1.031 GB, free: 7.559 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.5968, allocations: 124.6 kB / 1.031 GB, free: 7.418 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.215e-05/0.5968, allocations: 11.94 kB / 1.031 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.933e-05/0.5969, allocations: 0 / 1.031 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.512e-05/0.5969, allocations: 4 kB / 1.031 GB, free: 7.402 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.078e-06/0.5969, allocations: 4 kB / 1.031 GB, free: 7.398 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004429/0.5974, allocations: 423.1 kB / 1.031 GB, free: 6.984 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5974, allocations: 0 / 1.031 GB, free: 6.984 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002576/0.5977, allocations: 24 kB / 1.031 GB, free: 6.961 MB / 0.7794 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 (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.001149/0.5988, allocations: 0.963 MB / 1.032 GB, free: 6.105 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001453/0.599, allocations: 43.86 kB / 1.032 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.599, allocations: 0 / 1.032 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.488e-05/0.599, allocations: 19.98 kB / 1.032 GB, free: 6.043 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003845/0.5994, allocations: 43.06 kB / 1.033 GB, free: 6.004 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00348/0.6029, allocations: 2.968 MB / 1.035 GB, free: 2.949 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003497/0.6033, allocations: 0.7872 MB / 1.036 GB, free: 2.137 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001137/0.6034, allocations: 43.11 kB / 1.036 GB, free: 2.098 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.6035, allocations: 91.39 kB / 1.036 GB, free: 2.008 MB / 0.7794 GB Notification: Performance of SimCode: time 3.51e-07/0.6035, allocations: 0 / 1.036 GB, free: 2.008 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7622/1.366, allocations: 4.928 MB / 1.041 GB, free: 13.28 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002291/1.366, allocations: 281.1 kB / 1.041 GB, free: 12.9 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.348/3.714, allocations: 2.391 kB / 1.041 GB, free: 12.9 MB / 0.795 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)