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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 106.5 kB / 16.4 MB, free: 6.488 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001412/0.001413, allocations: 196.5 kB / 19.36 MB, free: 3.73 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 222.9 MB / 245.1 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.236/3.236, allocations: 489 MB / 0.7678 GB, free: 29.15 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 67.89 kB / 1.101 GB, free: 5.82 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8769/0.8788, allocations: 163.8 MB / 1.261 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003702/0.8826, allocations: 1.768 MB / 1.263 GB, free: 5.32 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0017/0.8843, allocations: 0.9201 MB / 1.264 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.8845, allocations: 0 / 1.264 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005866/0.8851, allocations: 178.4 kB / 1.264 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0004473/0.8855, allocations: 163.4 kB / 1.264 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005253/0.8861, allocations: 210.3 kB / 1.264 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003915/0.8865, allocations: 243.4 kB / 1.264 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.8866, allocations: 61.58 kB / 1.264 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002256/0.8869, allocations: 95.66 kB / 1.265 GB, free: 3.469 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002594/0.8871, allocations: 155.5 kB / 1.265 GB, free: 3.316 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.262e-05/0.8872, allocations: 20 kB / 1.265 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001314/0.8873, allocations: 47.98 kB / 1.265 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001258/0.8875, allocations: 83.75 kB / 1.265 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.8876, allocations: 119.2 kB / 1.265 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004792/0.8881, allocations: 357.4 kB / 1.265 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.8881, allocations: 0 / 1.265 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.894e-06/0.8881, allocations: 0 / 1.265 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.086e-05/0.8881, allocations: 0 / 1.265 GB, free: 2.703 MB / 0.9669 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.0009867/0.8891, allocations: 0.6145 MB / 1.266 GB, free: 2.039 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.8892, allocations: 12.03 kB / 1.266 GB, free: 2.027 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.634e-05/0.8892, allocations: 42.67 kB / 1.266 GB, free: 1.977 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.563e-05/0.8893, allocations: 44.62 kB / 1.266 GB, free: 1.934 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006221/0.89, allocations: 410.6 kB / 1.266 GB, free: 1.496 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.864e-06/0.89, allocations: 4.375 kB / 1.266 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.811e-05/0.89, allocations: 11.94 kB / 1.266 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001877/0.8902, allocations: 77.66 kB / 1.266 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.8902, allocations: 0 / 1.266 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.8902, allocations: 0 / 1.266 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.8902, allocations: 4 kB / 1.266 GB, free: 1.395 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001342/0.8904, allocations: 47.91 kB / 1.267 GB, free: 1.348 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007341/0.8911, allocations: 488.5 kB / 1.267 GB, free: 0.8203 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.8913, allocations: 54.55 kB / 1.267 GB, free: 0.7578 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.493e-05/0.8913, allocations: 16.86 kB / 1.267 GB, free: 0.7383 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.368e-05/0.8914, allocations: 0 / 1.267 GB, free: 0.7383 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.8914, allocations: 34.55 kB / 1.267 GB, free: 0.6953 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.273e-06/0.8914, allocations: 0 / 1.267 GB, free: 0.6953 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0003146/0.8917, allocations: 113.4 kB / 1.267 GB, free: 0.5781 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.944e-05/0.8918, allocations: 55.34 kB / 1.267 GB, free: 0.5117 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000686/0.8925, allocations: 0.5484 MB / 1.268 GB, free: 15.95 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.8925, allocations: 25.7 kB / 1.268 GB, free: 15.92 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.8926, allocations: 176 kB / 1.268 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.172e-05/0.8927, allocations: 7.891 kB / 1.268 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.516e-05/0.8927, allocations: 13.72 kB / 1.268 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001653/0.8929, allocations: 350.8 kB / 1.268 GB, free: 15.37 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.768e-05/0.8929, allocations: 7.984 kB / 1.268 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.516e-05/0.893, allocations: 15.98 kB / 1.268 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.529e-05/0.8931, allocations: 32.84 kB / 1.268 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.8931, allocations: 0 / 1.268 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001757/0.8933, allocations: 97.38 kB / 1.269 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.8933, allocations: 4 kB / 1.269 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.8933, allocations: 8 kB / 1.269 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.8933, allocations: 3.938 kB / 1.269 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.806e-05/0.8934, allocations: 8.312 kB / 1.269 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.8934, allocations: 0 / 1.269 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.388e-05/0.8935, allocations: 4 kB / 1.269 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.8935, allocations: 0 / 1.269 GB, free: 15.18 MB / 0.9825 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.0001669/0.8937, allocations: 181.8 kB / 1.269 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.399e-05/0.8937, allocations: 27.81 kB / 1.269 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002382/0.894, allocations: 116.1 kB / 1.269 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.894, allocations: 0 / 1.269 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.894, allocations: 0 / 1.269 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.894, allocations: 3.938 kB / 1.269 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003117/0.8943, allocations: 289.4 kB / 1.269 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.8943, allocations: 0 / 1.269 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.968e-05/0.8944, allocations: 8.094 kB / 1.269 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.8944, allocations: 3.938 kB / 1.269 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.8944, allocations: 7.938 kB / 1.269 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.8944, allocations: 0 / 1.269 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.8944, allocations: 0 / 1.269 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002248/0.8947, allocations: 191.3 kB / 1.269 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/0.8948, allocations: 112.9 kB / 1.269 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.8948, allocations: 7.938 kB / 1.269 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.701e-05/0.8949, allocations: 0 / 1.269 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.878e-05/0.895, allocations: 7.984 kB / 1.269 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.895, allocations: 4 kB / 1.269 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000464/0.8954, allocations: 419.1 kB / 1.27 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.064e-06/0.8955, allocations: 0 / 1.27 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002583/0.8957, allocations: 31.88 kB / 1.27 GB, free: 13.7 MB / 0.9825 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.001663/0.8974, allocations: 0.968 MB / 1.271 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001597/0.8976, allocations: 35.91 kB / 1.271 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.8976, allocations: 0 / 1.271 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.496e-05/0.8976, allocations: 19.92 kB / 1.271 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004703/0.8981, allocations: 52.3 kB / 1.271 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003634/0.9018, allocations: 2.893 MB / 1.274 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004313/0.9022, allocations: 0.7792 MB / 1.275 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001246/0.9023, allocations: 46.92 kB / 1.275 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000146/0.9025, allocations: 91.41 kB / 1.275 GB, free: 8.828 MB / 0.9825 GB Notification: Performance of SimCode: time 5.41e-07/0.9025, allocations: 0 / 1.275 GB, free: 8.828 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0285/0.931, allocations: 5.469 MB / 1.28 GB, free: 3.566 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.311/9.242, allocations: 19.98 kB / 1.28 GB, free: 3.551 MB / 0.9825 GB " [Timeout remaining time 291] (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 --stepSize=34.56 --timeout=800 --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) [Timeout 840.0] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.527134616160765]