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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.001179, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001503/0.001503, allocations: 195 kB / 16.14 MB, free: 6.645 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.397/1.397, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.823/2.823, allocations: 461.9 MB / 0.7342 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 70.81 kB / 0.8984 GB, free: 37.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3735/0.375, allocations: 157.4 MB / 1.052 GB, free: 8.836 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003567/0.3786, allocations: 1.832 MB / 1.054 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001429/0.38, allocations: 0.9199 MB / 1.055 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.967e-05/0.3801, allocations: 3.938 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005418/0.3807, allocations: 163 kB / 1.055 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003276/0.381, allocations: 151.5 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004265/0.3814, allocations: 193.6 kB / 1.055 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002691/0.3817, allocations: 227.4 kB / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001857/0.3819, allocations: 53.64 kB / 1.056 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001538/0.3821, allocations: 79.67 kB / 1.056 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001799/0.3823, allocations: 139.5 kB / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.611e-05/0.3823, allocations: 8 kB / 1.056 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001035/0.3824, allocations: 43.97 kB / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.871e-05/0.3825, allocations: 71.75 kB / 1.056 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.799e-05/0.3826, allocations: 99.22 kB / 1.056 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003679/0.383, allocations: 351 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.383, allocations: 0 / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.42e-07/0.383, allocations: 0 / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.383, allocations: 0 / 1.056 GB, free: 4.52 MB / 0.8106 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.0008477/0.3839, allocations: 0.6069 MB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/0.3839, allocations: 8.031 kB / 1.057 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.779e-05/0.384, allocations: 36.56 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005199/0.3845, allocations: 406.3 kB / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.3846, allocations: 4.312 kB / 1.057 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.663e-05/0.3846, allocations: 12.12 kB / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001753/0.3848, allocations: 81.59 kB / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.3848, allocations: 0 / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.3848, allocations: 0 / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.3848, allocations: 0 / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000132/0.3849, allocations: 47.97 kB / 1.057 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006593/0.3856, allocations: 488.5 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000146/0.3858, allocations: 50.55 kB / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.488e-05/0.3859, allocations: 17.03 kB / 1.058 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/0.3859, allocations: 7.938 kB / 1.058 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.3859, allocations: 38.48 kB / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.3859, allocations: 0 / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003855/0.3863, allocations: 105.2 kB / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.612e-05/0.3864, allocations: 51.41 kB / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008169/0.3872, allocations: 0.5523 MB / 1.059 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.3872, allocations: 25.7 kB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.3874, allocations: 176 kB / 1.059 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.473e-05/0.3874, allocations: 15.73 kB / 1.059 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.421e-05/0.3874, allocations: 13.72 kB / 1.059 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001652/0.3876, allocations: 346.8 kB / 1.059 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.893e-05/0.3877, allocations: 7.984 kB / 1.059 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.073e-05/0.3877, allocations: 19.92 kB / 1.059 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.979e-05/0.3878, allocations: 32.84 kB / 1.059 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.3878, allocations: 4 kB / 1.059 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001661/0.388, allocations: 93.23 kB / 1.059 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.388, allocations: 8 kB / 1.059 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.388, allocations: 4 kB / 1.059 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.3881, allocations: 3.938 kB / 1.059 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.691e-05/0.3881, allocations: 7.984 kB / 1.059 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.3882, allocations: 0 / 1.059 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.062e-05/0.3882, allocations: 4 kB / 1.059 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.3882, allocations: 3.984 kB / 1.059 GB, free: 1.062 MB / 0.8106 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.0001633/0.3884, allocations: 187.3 kB / 1.06 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.489e-05/0.3885, allocations: 31.62 kB / 1.06 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002143/0.3887, allocations: 96.19 kB / 1.06 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.3887, allocations: 3.938 kB / 1.06 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.3887, allocations: 0 / 1.06 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3887, allocations: 384 / 1.06 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002891/0.389, allocations: 285.5 kB / 1.06 GB, free: 412 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.389, allocations: 0 / 1.06 GB, free: 412 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.158e-05/0.3891, allocations: 11.98 kB / 1.06 GB, free: 400 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3891, allocations: 0 / 1.06 GB, free: 400 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.655e-06/0.3891, allocations: 4 kB / 1.06 GB, free: 396 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.3891, allocations: 3.938 kB / 1.06 GB, free: 392 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3891, allocations: 0 / 1.06 GB, free: 392 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002122/0.3893, allocations: 195 kB / 1.06 GB, free: 180 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 8.818e-05/0.3894, allocations: 112.8 kB / 1.06 GB, free: 48 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.233e-05/0.3895, allocations: 0 / 1.06 GB, free: 48 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.716e-05/0.3896, allocations: 7.938 kB / 1.06 GB, free: 40 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.474e-05/0.3896, allocations: 11.98 kB / 1.06 GB, free: 28 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.768e-06/0.3896, allocations: 0 / 1.06 GB, free: 28 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004569/0.3901, allocations: 415.1 kB / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3901, allocations: 0 / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002615/0.3903, allocations: 31.91 kB / 1.061 GB, free: 15.59 MB / 0.8262 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.0009048/0.3913, allocations: 352 kB / 1.061 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001566/0.3914, allocations: 39.91 kB / 1.061 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3914, allocations: 0 / 1.061 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.147e-05/0.3915, allocations: 12 kB / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004555/0.392, allocations: 47.41 kB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008588/0.3928, allocations: 0.5624 MB / 1.062 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.3932, allocations: 0.7911 MB / 1.063 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001099/0.3933, allocations: 46.92 kB / 1.063 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.821e-05/0.3934, allocations: 23.42 kB / 1.063 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of SimCode: time 4.81e-07/0.3934, allocations: 4 kB / 1.063 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of Templates: time 0.005958/0.3994, allocations: 2.374 MB / 1.065 GB, free: 11.46 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (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 & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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