Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_maint_7_0_x_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.544/1.544, allocations: 249.3 MB / 261.8 MB, free: 5.938 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00132/0.00132, allocations: 174.7 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.825/1.825, allocations: 205.2 MB / 0.572 GB, free: 10.68 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00106/0.00106, allocations: 88.05 kB / 0.6764 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.342e-05/3.344e-05, allocations: 4 kB / 0.788 GB, free: 96.99 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2612, allocations: 106.3 MB / 0.8919 GB, free: 6.562 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8543/1.116, allocations: 134.8 MB / 1.024 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003107/1.116, allocations: 95.44 kB / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.0139/1.13, allocations: 5.293 MB / 1.029 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.134e-06/1.13, allocations: 0 / 1.029 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.669e-05/1.13, allocations: 8 kB / 1.029 GB, free: 11.37 MB / 0.6511 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.0005764/1.131, allocations: 0.5036 MB / 1.029 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/1.131, allocations: 12.03 kB / 1.029 GB, free: 10.83 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.843e-05/1.131, allocations: 33.81 kB / 1.029 GB, free: 10.79 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.266e-05/1.131, allocations: 31.62 kB / 1.029 GB, free: 10.76 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006599/1.131, allocations: 425.5 kB / 1.03 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/1.131, allocations: 3.875 kB / 1.03 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.439e-05/1.131, allocations: 4 kB / 1.03 GB, free: 10.36 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001423/1.132, allocations: 63.88 kB / 1.03 GB, free: 10.31 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/1.132, allocations: 0 / 1.03 GB, free: 10.31 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/1.132, allocations: 7.922 kB / 1.03 GB, free: 10.3 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/1.132, allocations: 8 kB / 1.03 GB, free: 10.3 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.318e-05/1.132, allocations: 30.38 kB / 1.03 GB, free: 10.28 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007333/1.133, allocations: 0.5003 MB / 1.03 GB, free: 9.812 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001048/1.133, allocations: 49.69 kB / 1.03 GB, free: 9.762 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.286e-05/1.133, allocations: 16.17 kB / 1.03 GB, free: 9.746 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/1.133, allocations: 0 / 1.03 GB, free: 9.746 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.815e-05/1.133, allocations: 38.45 kB / 1.03 GB, free: 9.703 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/1.133, allocations: 0 / 1.03 GB, free: 9.703 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3): time 0.0002075/1.133, allocations: 77.39 kB / 1.031 GB, free: 9.625 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.797e-05/1.133, allocations: 55.34 kB / 1.031 GB, free: 9.559 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006385/1.134, allocations: 0.4908 MB / 1.031 GB, free: 9.176 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/1.134, allocations: 29.7 kB / 1.031 GB, free: 9.141 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/1.134, allocations: 179.4 kB / 1.031 GB, free: 9.02 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 1.878e-05/1.134, allocations: 7.844 kB / 1.031 GB, free: 9.012 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.186e-06/1.134, allocations: 0 / 1.031 GB, free: 9.012 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001634/1.134, allocations: 348.2 kB / 1.032 GB, free: 8.676 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.469e-05/1.134, allocations: 11 kB / 1.032 GB, free: 8.668 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.768e-05/1.134, allocations: 7.75 kB / 1.032 GB, free: 8.664 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.172e-05/1.134, allocations: 15.36 kB / 1.032 GB, free: 8.652 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/1.134, allocations: 0 / 1.032 GB, free: 8.652 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001217/1.134, allocations: 80.25 kB / 1.032 GB, free: 8.574 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/1.134, allocations: 8 kB / 1.032 GB, free: 8.566 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/1.134, allocations: 3.953 kB / 1.032 GB, free: 8.562 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/1.134, allocations: 0 / 1.032 GB, free: 8.562 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.663e-05/1.134, allocations: 8 kB / 1.032 GB, free: 8.555 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.383e-06/1.134, allocations: 0 / 1.032 GB, free: 8.555 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.066e-05/1.135, allocations: 7.891 kB / 1.032 GB, free: 8.547 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/1.135, allocations: 4 kB / 1.032 GB, free: 8.543 MB / 0.6511 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 () * 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 7.227e-05/1.135, allocations: 108.9 kB / 1.032 GB, free: 8.43 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.383e-05/1.135, allocations: 23.72 kB / 1.032 GB, free: 8.406 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000189/1.135, allocations: 97.42 kB / 1.032 GB, free: 8.316 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/1.135, allocations: 3.953 kB / 1.032 GB, free: 8.312 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/1.135, allocations: 0 / 1.032 GB, free: 8.312 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/1.135, allocations: 4 kB / 1.032 GB, free: 8.309 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003046/1.135, allocations: 301.2 kB / 1.032 GB, free: 8.012 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/1.135, allocations: 0 / 1.032 GB, free: 8.012 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.774e-05/1.135, allocations: 4 kB / 1.032 GB, free: 8.008 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/1.135, allocations: 0 / 1.032 GB, free: 8.008 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/1.135, allocations: 12 kB / 1.032 GB, free: 7.996 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/1.135, allocations: 0 / 1.032 GB, free: 7.996 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/1.135, allocations: 3.953 kB / 1.032 GB, free: 7.992 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001892/1.136, allocations: 187.4 kB / 1.032 GB, free: 7.805 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/1.136, allocations: 132.1 kB / 1.033 GB, free: 7.668 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.642e-05/1.136, allocations: 4 kB / 1.033 GB, free: 7.664 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.496e-05/1.136, allocations: 3.984 kB / 1.033 GB, free: 7.66 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.553e-05/1.136, allocations: 15.89 kB / 1.033 GB, free: 7.645 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/1.136, allocations: 0 / 1.033 GB, free: 7.645 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004549/1.136, allocations: 405.7 kB / 1.033 GB, free: 7.348 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.8e-07/1.136, allocations: 0 / 1.033 GB, free: 7.348 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002591/1.137, allocations: 24 kB / 1.033 GB, free: 7.324 MB / 0.6511 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 () * 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.001105/1.138, allocations: 0.9252 MB / 1.034 GB, free: 6.461 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 9.378e-05/1.138, allocations: 26.92 kB / 1.034 GB, free: 6.441 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/1.138, allocations: 0 / 1.034 GB, free: 6.441 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 2.856e-05/1.138, allocations: 11.44 kB / 1.034 GB, free: 6.434 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003094/1.138, allocations: 44.55 kB / 1.034 GB, free: 6.406 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008811/1.139, allocations: 496.3 kB / 1.034 GB, free: 5.961 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/1.14, allocations: 0.7917 MB / 1.035 GB, free: 5.16 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001247/1.14, allocations: 62.03 kB / 1.035 GB, free: 5.098 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/1.14, allocations: 82.53 kB / 1.035 GB, free: 5.07 MB / 0.6511 GB Notification: Performance of SimCode: time 4.01e-07/1.14, allocations: 0 / 1.035 GB, free: 5.07 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01831/1.158, allocations: 5.485 MB / 1.041 GB, free: 15.74 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002351/1.158, allocations: 236.7 kB / 1.041 GB, free: 15.43 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.156/3.314, allocations: 0 / 1.041 GB, free: 15.43 MB / 0.6667 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)