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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.009828/0.009828, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.002056/0.002056, allocations: 194.2 kB / 16.68 MB, free: 5.926 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.66/2.66, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 63.91 kB / 1.054 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8431/0.8444, allocations: 157.4 MB / 1.207 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.00334/0.8478, allocations: 1.773 MB / 1.209 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001506/0.8494, allocations: 0.92 MB / 1.21 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001245/0.8495, allocations: 0 / 1.21 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0005497/0.8501, allocations: 179.1 kB / 1.21 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0004271/0.8505, allocations: 167.5 kB / 1.21 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005118/0.851, allocations: 214.9 kB / 1.21 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003298/0.8513, allocations: 247.4 kB / 1.211 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001649/0.8515, allocations: 55.89 kB / 1.211 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002063/0.8517, allocations: 103.6 kB / 1.211 GB, free: 9.965 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002228/0.852, allocations: 151.6 kB / 1.211 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.034e-05/0.852, allocations: 23.98 kB / 1.211 GB, free: 9.793 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001255/0.8522, allocations: 47.98 kB / 1.211 GB, free: 9.746 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.8523, allocations: 83.75 kB / 1.211 GB, free: 9.664 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.8524, allocations: 111.2 kB / 1.211 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000404/0.8528, allocations: 358.8 kB / 1.212 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.8528, allocations: 0 / 1.212 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.783e-06/0.8528, allocations: 0 / 1.212 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.034e-05/0.8529, allocations: 0 / 1.212 GB, free: 9.203 MB / 0.9356 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.0009102/0.8538, allocations: 0.6031 MB / 1.212 GB, free: 8.551 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.8538, allocations: 12.03 kB / 1.212 GB, free: 8.539 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.229e-05/0.8539, allocations: 42.67 kB / 1.212 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.285e-05/0.8539, allocations: 36.47 kB / 1.212 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005656/0.8545, allocations: 410.3 kB / 1.213 GB, free: 8.016 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.8545, allocations: 384 / 1.213 GB, free: 8.016 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.831e-05/0.8546, allocations: 11.94 kB / 1.213 GB, free: 8.004 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001823/0.8548, allocations: 69.67 kB / 1.213 GB, free: 7.93 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.8548, allocations: 0 / 1.213 GB, free: 7.93 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.8548, allocations: 4 kB / 1.213 GB, free: 7.926 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.8548, allocations: 4 kB / 1.213 GB, free: 7.922 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000145/0.855, allocations: 47.91 kB / 1.213 GB, free: 7.875 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006104/0.8556, allocations: 488.4 kB / 1.213 GB, free: 7.348 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001335/0.8557, allocations: 50.48 kB / 1.213 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.586e-05/0.8558, allocations: 20.92 kB / 1.213 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.252e-05/0.8558, allocations: 4 kB / 1.213 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.457e-05/0.8559, allocations: 30.56 kB / 1.213 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.8559, allocations: 0 / 1.213 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0002962/0.8562, allocations: 101.4 kB / 1.213 GB, free: 7.117 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.734e-05/0.8562, allocations: 55.41 kB / 1.213 GB, free: 7.051 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005922/0.8568, allocations: 0.5562 MB / 1.214 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.8568, allocations: 29.7 kB / 1.214 GB, free: 6.449 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.857, allocations: 176 kB / 1.214 GB, free: 6.273 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.964e-05/0.857, allocations: 7.891 kB / 1.214 GB, free: 6.266 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.323e-05/0.857, allocations: 13.72 kB / 1.214 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.8572, allocations: 342.8 kB / 1.215 GB, free: 5.902 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.94e-05/0.8572, allocations: 15.92 kB / 1.215 GB, free: 5.887 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.022e-05/0.8573, allocations: 19.97 kB / 1.215 GB, free: 5.867 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.243e-05/0.8574, allocations: 36.84 kB / 1.215 GB, free: 5.828 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.8574, allocations: 0 / 1.215 GB, free: 5.828 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001572/0.8575, allocations: 93.23 kB / 1.215 GB, free: 5.73 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.8576, allocations: 4 kB / 1.215 GB, free: 5.727 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.8576, allocations: 0 / 1.215 GB, free: 5.727 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.8576, allocations: 3.938 kB / 1.215 GB, free: 5.723 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.77e-05/0.8577, allocations: 8 kB / 1.215 GB, free: 5.715 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.8577, allocations: 0 / 1.215 GB, free: 5.715 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.75e-05/0.8578, allocations: 7.984 kB / 1.215 GB, free: 5.707 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.733e-06/0.8578, allocations: 0 / 1.215 GB, free: 5.707 MB / 0.9356 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.0001388/0.8579, allocations: 177.8 kB / 1.215 GB, free: 5.523 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.263e-05/0.858, allocations: 31.62 kB / 1.215 GB, free: 5.492 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002096/0.8582, allocations: 108.1 kB / 1.215 GB, free: 5.375 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.8582, allocations: 0 / 1.215 GB, free: 5.375 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.8582, allocations: 0 / 1.215 GB, free: 5.375 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.8582, allocations: 0 / 1.215 GB, free: 5.375 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002726/0.8585, allocations: 281.6 kB / 1.215 GB, free: 5.051 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.8585, allocations: 3.938 kB / 1.215 GB, free: 5.047 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.119e-05/0.8586, allocations: 19.98 kB / 1.215 GB, free: 5.027 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.8586, allocations: 0 / 1.215 GB, free: 5.027 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.8586, allocations: 3.938 kB / 1.215 GB, free: 5.023 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.8586, allocations: 0 / 1.215 GB, free: 5.023 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.8586, allocations: 0 / 1.215 GB, free: 5.023 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002174/0.8588, allocations: 187.2 kB / 1.216 GB, free: 4.824 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 8.696e-05/0.8589, allocations: 116.7 kB / 1.216 GB, free: 4.691 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.169e-05/0.859, allocations: 3.938 kB / 1.216 GB, free: 4.688 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.094e-05/0.8591, allocations: 8 kB / 1.216 GB, free: 4.68 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.988e-05/0.8591, allocations: 3.984 kB / 1.216 GB, free: 4.676 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.879e-06/0.8591, allocations: 4 kB / 1.216 GB, free: 4.672 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004099/0.8595, allocations: 419 kB / 1.216 GB, free: 4.266 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8595, allocations: 0 / 1.216 GB, free: 4.266 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002599/0.8598, allocations: 24 kB / 1.216 GB, free: 4.242 MB / 0.9356 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.001208/0.861, allocations: 0.9678 MB / 1.217 GB, free: 3.379 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001523/0.8612, allocations: 35.91 kB / 1.217 GB, free: 3.344 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.8612, allocations: 7.875 kB / 1.217 GB, free: 3.336 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 4.922e-05/0.8612, allocations: 16 kB / 1.217 GB, free: 3.32 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004818/0.8617, allocations: 42.41 kB / 1.217 GB, free: 3.281 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003204/0.8649, allocations: 2.896 MB / 1.22 GB, free: 320 kB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003887/0.8653, allocations: 0.787 MB / 1.221 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001084/0.8655, allocations: 50.91 kB / 1.221 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.8656, allocations: 87.41 kB / 1.221 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of SimCode: time 2.835e-06/0.8656, allocations: 0 / 1.221 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02379/0.8894, allocations: 5.569 MB / 1.226 GB, free: 9.992 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.929/8.819, allocations: 2.062 kB / 1.226 GB, free: 9.992 MB / 0.9512 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/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) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches