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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.005764/0.005764, allocations: 101.3 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.001361/0.001361, allocations: 187 kB / 16.67 MB, free: 5.922 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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.631/2.631, allocations: 469.4 MB / 0.7422 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 67.89 kB / 1.064 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6653/0.6665, allocations: 159.1 MB / 1.22 GB, free: 2.242 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002824/0.6694, allocations: 1.764 MB / 1.221 GB, free: 476 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00129/0.6707, allocations: 0.9248 MB / 1.222 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.546e-05/0.6707, allocations: 4 kB / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0004736/0.6712, allocations: 186.2 kB / 1.223 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0003459/0.6716, allocations: 167.2 kB / 1.223 GB, free: 15.19 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004018/0.672, allocations: 213.9 kB / 1.223 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002564/0.6722, allocations: 239.5 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.6724, allocations: 57.66 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.6726, allocations: 107.6 kB / 1.223 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001964/0.6728, allocations: 151.6 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.99e-05/0.6728, allocations: 16 kB / 1.223 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 8.901e-05/0.6729, allocations: 47.97 kB / 1.223 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 9.798e-05/0.673, allocations: 83.75 kB / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.6731, allocations: 123.2 kB / 1.224 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003624/0.6735, allocations: 354.3 kB / 1.224 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.6735, allocations: 0 / 1.224 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.753e-06/0.6735, allocations: 0 / 1.224 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.774e-06/0.6735, allocations: 0 / 1.224 GB, free: 13.84 MB / 0.9512 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.0007996/0.6743, allocations: 0.6285 MB / 1.225 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.6744, allocations: 8.625 kB / 1.225 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.338e-05/0.6744, allocations: 42.73 kB / 1.225 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.078e-05/0.6745, allocations: 32.7 kB / 1.225 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005283/0.675, allocations: 410.6 kB / 1.225 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.675, allocations: 4.375 kB / 1.225 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.775e-05/0.6751, allocations: 11.94 kB / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001523/0.6752, allocations: 65.67 kB / 1.225 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.6752, allocations: 0 / 1.225 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.6753, allocations: 11.98 kB / 1.225 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.6753, allocations: 4 kB / 1.225 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001263/0.6754, allocations: 47.91 kB / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005665/0.676, allocations: 484.4 kB / 1.226 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001234/0.6761, allocations: 54.55 kB / 1.226 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.325e-05/0.6762, allocations: 20.92 kB / 1.226 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.6762, allocations: 3.984 kB / 1.226 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.931e-05/0.6762, allocations: 34.55 kB / 1.226 GB, free: 11.83 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.6762, allocations: 0 / 1.226 GB, free: 11.83 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0002801/0.6765, allocations: 105.4 kB / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.722e-05/0.6766, allocations: 51.41 kB / 1.226 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005983/0.6772, allocations: 0.5524 MB / 1.227 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.6772, allocations: 33.7 kB / 1.227 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.6773, allocations: 164.1 kB / 1.227 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.169e-05/0.6773, allocations: 23.83 kB / 1.227 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.192e-05/0.6774, allocations: 13.66 kB / 1.227 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.6775, allocations: 342.8 kB / 1.227 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.363e-05/0.6776, allocations: 15.98 kB / 1.227 GB, free: 10.49 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.205e-05/0.6776, allocations: 15.98 kB / 1.227 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.2e-05/0.6777, allocations: 36.84 kB / 1.227 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.6777, allocations: 0 / 1.227 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001745/0.6779, allocations: 93.42 kB / 1.227 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.6779, allocations: 5.562 kB / 1.227 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/0.6779, allocations: 0 / 1.227 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.6779, allocations: 3.938 kB / 1.227 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.052e-05/0.678, allocations: 8 kB / 1.227 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.678, allocations: 3.984 kB / 1.227 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.512e-05/0.6781, allocations: 0 / 1.227 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.664e-06/0.6781, allocations: 4 kB / 1.227 GB, free: 10.31 MB / 0.9512 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.0001333/0.6783, allocations: 180 kB / 1.227 GB, free: 10.13 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.282e-05/0.6783, allocations: 27.81 kB / 1.227 GB, free: 10.1 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002039/0.6785, allocations: 108.1 kB / 1.228 GB, free: 9.988 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.6785, allocations: 0 / 1.228 GB, free: 9.988 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.6786, allocations: 4 kB / 1.228 GB, free: 9.984 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.6786, allocations: 112 / 1.228 GB, free: 9.984 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002724/0.6788, allocations: 285.5 kB / 1.228 GB, free: 9.656 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.6788, allocations: 0 / 1.228 GB, free: 9.656 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.316e-05/0.6789, allocations: 19.98 kB / 1.228 GB, free: 9.637 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.6789, allocations: 0 / 1.228 GB, free: 9.637 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.6789, allocations: 3.938 kB / 1.228 GB, free: 9.633 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.6789, allocations: 0 / 1.228 GB, free: 9.633 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.6789, allocations: 0 / 1.228 GB, free: 9.633 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001955/0.6791, allocations: 187.3 kB / 1.228 GB, free: 9.434 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.6793, allocations: 117.3 kB / 1.228 GB, free: 9.301 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.995e-05/0.6793, allocations: 3.938 kB / 1.228 GB, free: 9.297 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.541e-05/0.6794, allocations: 4 kB / 1.228 GB, free: 9.293 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.132e-05/0.6794, allocations: 11.92 kB / 1.228 GB, free: 9.281 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-06/0.6795, allocations: 0 / 1.228 GB, free: 9.281 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0004285/0.6799, allocations: 419.1 kB / 1.229 GB, free: 8.871 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6799, allocations: 0 / 1.229 GB, free: 8.871 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002638/0.6802, allocations: 27.94 kB / 1.229 GB, free: 8.844 MB / 0.9512 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.00111/0.6813, allocations: 0.968 MB / 1.23 GB, free: 7.977 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001413/0.6814, allocations: 47.84 kB / 1.23 GB, free: 7.93 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.6814, allocations: 0 / 1.23 GB, free: 7.93 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 5.37e-05/0.6815, allocations: 19.98 kB / 1.23 GB, free: 7.91 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003837/0.6819, allocations: 35.52 kB / 1.23 GB, free: 7.879 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003117/0.685, allocations: 2.893 MB / 1.232 GB, free: 4.902 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000343/0.6854, allocations: 0.787 MB / 1.233 GB, free: 4.09 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001004/0.6855, allocations: 50.84 kB / 1.233 GB, free: 4.039 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.6856, allocations: 83.41 kB / 1.233 GB, free: 3.961 MB / 0.9512 GB Notification: Performance of SimCode: time 2.71e-07/0.6856, allocations: 0 / 1.233 GB, free: 3.961 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02095/0.7066, allocations: 5.47 MB / 1.239 GB, free: 14.69 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.498/8.205, allocations: 5.188 kB / 1.239 GB, free: 14.69 MB / 0.9669 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 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.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[501]=86400.000000 File[27]=1002.240000 Error: Could not read variable linPieTwo.u in file Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv. Warning: Get data of variable linPieTwo.u from file Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv failed! " Variables in the reference:time,linPieTwo.u,linPieTwo.y[1],linPieTwo.y[2] Variables in the result:time,linPieTwo.y[1],linPieTwo.y[2],pulse.y,linPieTwo.x0,linPieTwo.x1