Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_11_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.007378/0.007378, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.002087/0.002087, allocations: 198.9 kB / 16.67 MB, free: 5.934 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.707/2.707, allocations: 469.8 MB / 0.7425 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002544/0.002544, allocations: 67.89 kB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6663/0.6688, allocations: 159.1 MB / 1.22 GB, free: 2.008 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003102/0.672, allocations: 1.764 MB / 1.222 GB, free: 240 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001462/0.6734, allocations: 0.9171 MB / 1.223 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.109e-05/0.6735, allocations: 11.88 kB / 1.223 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0004934/0.674, allocations: 186.7 kB / 1.223 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0003789/0.6744, allocations: 161.9 kB / 1.223 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004352/0.6749, allocations: 208.7 kB / 1.223 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003022/0.6752, allocations: 247.5 kB / 1.224 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.6753, allocations: 57.66 kB / 1.224 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001478/0.6755, allocations: 99.66 kB / 1.224 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002139/0.6757, allocations: 155.5 kB / 1.224 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.137e-05/0.6757, allocations: 16 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.6758, allocations: 51.98 kB / 1.224 GB, free: 14.15 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.676, allocations: 87.73 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.6761, allocations: 115.2 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004283/0.6765, allocations: 350.2 kB / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.6765, allocations: 0 / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.763e-06/0.6765, allocations: 0 / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.6766, allocations: 0 / 1.224 GB, free: 13.61 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.0008501/0.6774, allocations: 0.6223 MB / 1.225 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.6775, allocations: 8.625 kB / 1.225 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.836e-05/0.6775, allocations: 42.75 kB / 1.225 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.783e-05/0.6776, allocations: 32.7 kB / 1.225 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005683/0.6781, allocations: 414.6 kB / 1.226 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.6782, allocations: 8.375 kB / 1.226 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.6782, allocations: 7.938 kB / 1.226 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001638/0.6783, allocations: 77.59 kB / 1.226 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.6784, allocations: 4 kB / 1.226 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.766e-06/0.6784, allocations: 0 / 1.226 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.6784, allocations: 0 / 1.226 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001381/0.6785, allocations: 51.91 kB / 1.226 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006136/0.6792, allocations: 492.4 kB / 1.226 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001246/0.6793, allocations: 46.5 kB / 1.226 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.507e-05/0.6794, allocations: 20.91 kB / 1.226 GB, free: 11.65 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.6794, allocations: 3.984 kB / 1.226 GB, free: 11.64 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.6794, allocations: 38.56 kB / 1.226 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.6794, allocations: 0 / 1.226 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0002913/0.6797, allocations: 101.4 kB / 1.226 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.6798, allocations: 55.39 kB / 1.226 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006919/0.6805, allocations: 0.5523 MB / 1.227 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.6805, allocations: 25.7 kB / 1.227 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.6806, allocations: 172 kB / 1.227 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.6807, allocations: 19.84 kB / 1.227 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.652e-05/0.6807, allocations: 13.72 kB / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001688/0.6809, allocations: 346.8 kB / 1.227 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.619e-05/0.681, allocations: 15.98 kB / 1.228 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.991e-05/0.681, allocations: 8 kB / 1.228 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001013/0.6811, allocations: 36.83 kB / 1.228 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.6811, allocations: 0 / 1.228 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001818/0.6813, allocations: 89.5 kB / 1.228 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.6813, allocations: 4 kB / 1.228 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.6813, allocations: 0 / 1.228 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.6814, allocations: 7.922 kB / 1.228 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.483e-05/0.6814, allocations: 11.94 kB / 1.228 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.6815, allocations: 0 / 1.228 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.132e-05/0.6815, allocations: 0 / 1.228 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.656e-06/0.6815, allocations: 4 kB / 1.228 GB, free: 10.09 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.0001852/0.6817, allocations: 181.8 kB / 1.228 GB, free: 9.902 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.783e-05/0.6818, allocations: 31.92 kB / 1.228 GB, free: 9.871 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002279/0.682, allocations: 108.1 kB / 1.228 GB, free: 9.758 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.682, allocations: 4 kB / 1.228 GB, free: 9.754 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.6821, allocations: 0 / 1.228 GB, free: 9.754 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.6821, allocations: 0 / 1.228 GB, free: 9.754 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000332/0.6824, allocations: 281.5 kB / 1.228 GB, free: 9.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.6824, allocations: 0 / 1.228 GB, free: 9.43 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.339e-05/0.6825, allocations: 11.94 kB / 1.228 GB, free: 9.418 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.6825, allocations: 0 / 1.228 GB, free: 9.418 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.6825, allocations: 15.92 kB / 1.228 GB, free: 9.402 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.6825, allocations: 3.938 kB / 1.228 GB, free: 9.398 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.6825, allocations: 0 / 1.228 GB, free: 9.398 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000231/0.6827, allocations: 187.3 kB / 1.228 GB, free: 9.199 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.6828, allocations: 112.9 kB / 1.229 GB, free: 9.07 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.306e-05/0.6829, allocations: 8.344 kB / 1.229 GB, free: 9.062 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.441e-05/0.683, allocations: 8 kB / 1.229 GB, free: 9.055 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.802e-05/0.683, allocations: 4 kB / 1.229 GB, free: 9.051 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.683, allocations: 0 / 1.229 GB, free: 9.051 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000497/0.6835, allocations: 423.1 kB / 1.229 GB, free: 8.637 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.6835, allocations: 0 / 1.229 GB, free: 8.637 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000262/0.6838, allocations: 23.94 kB / 1.229 GB, free: 8.613 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.001737/0.6855, allocations: 0.9728 MB / 1.23 GB, free: 7.742 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001518/0.6857, allocations: 35.86 kB / 1.23 GB, free: 7.707 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.6857, allocations: 0 / 1.23 GB, free: 7.707 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 6.182e-05/0.6858, allocations: 27.92 kB / 1.23 GB, free: 7.68 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004089/0.6862, allocations: 46 kB / 1.23 GB, free: 7.641 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003482/0.6897, allocations: 2.886 MB / 1.233 GB, free: 4.672 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004456/0.6902, allocations: 0.787 MB / 1.234 GB, free: 3.859 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 9.942e-05/0.6903, allocations: 38.94 kB / 1.234 GB, free: 3.82 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001354/0.6904, allocations: 91.39 kB / 1.234 GB, free: 3.734 MB / 0.9512 GB Notification: Performance of SimCode: time 2.5e-07/0.6904, allocations: 0 / 1.234 GB, free: 3.734 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02655/0.717, allocations: 5.469 MB / 1.239 GB, free: 14.44 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.967/8.684, allocations: 3.938 kB / 1.239 GB, free: 14.44 MB / 0.9669 GB (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv --start-time 0 --stop-time 86400 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv. Warning: Get data of variable linPieTwo.u from file Buildings_11_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