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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 116.8 kB / 17.17 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 209.5 kB / 20.13 MB, free: 3.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.55/1.55, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.112/3.112, allocations: 0.5003 GB / 0.8026 GB, free: 6.891 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001982/0.001982, allocations: 63.91 kB / 1.165 GB, free: 0.5352 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9765/0.9785, allocations: 178.9 MB / 1.34 GB, free: 16.14 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003393/0.9819, allocations: 1.826 MB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001932/0.9838, allocations: 1.143 MB / 1.343 GB, free: 14.09 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001556/0.984, allocations: 5.375 kB / 1.343 GB, free: 14.09 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0006527/0.9846, allocations: 187.9 kB / 1.343 GB, free: 14.01 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0005834/0.9852, allocations: 222.2 kB / 1.343 GB, free: 13.91 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006028/0.9858, allocations: 215.7 kB / 1.344 GB, free: 13.8 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.00043/0.9862, allocations: 262.8 kB / 1.344 GB, free: 13.68 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.9864, allocations: 46.41 kB / 1.344 GB, free: 13.65 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002498/0.9866, allocations: 112.4 kB / 1.344 GB, free: 13.61 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000267/0.9869, allocations: 178.3 kB / 1.344 GB, free: 13.55 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.406e-05/0.987, allocations: 20.16 kB / 1.344 GB, free: 13.55 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001519/0.9871, allocations: 50.55 kB / 1.344 GB, free: 13.54 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001302/0.9872, allocations: 90 kB / 1.344 GB, free: 13.5 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.9873, allocations: 121.8 kB / 1.344 GB, free: 13.41 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0005305/0.9879, allocations: 382.9 kB / 1.345 GB, free: 13.25 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.9879, allocations: 5.375 kB / 1.345 GB, free: 13.25 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.393e-06/0.9879, allocations: 0 / 1.345 GB, free: 13.25 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.023e-06/0.9879, allocations: 4 kB / 1.345 GB, free: 13.25 MB / 1.061 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.0008247/0.9887, allocations: 0.6336 MB / 1.345 GB, free: 12.69 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.9887, allocations: 9.625 kB / 1.345 GB, free: 12.69 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.702e-05/0.9888, allocations: 1.562 kB / 1.345 GB, free: 12.69 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.677e-05/0.9888, allocations: 45.59 kB / 1.346 GB, free: 12.64 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001729/0.989, allocations: 43.81 kB / 1.346 GB, free: 12.62 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006066/0.9896, allocations: 431.3 kB / 1.346 GB, free: 12.31 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.9896, allocations: 10.88 kB / 1.346 GB, free: 12.3 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.323e-05/0.9896, allocations: 2.75 kB / 1.346 GB, free: 12.3 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001675/0.9898, allocations: 74.53 kB / 1.346 GB, free: 12.25 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.9898, allocations: 0 / 1.346 GB, free: 12.25 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.9898, allocations: 5.719 kB / 1.346 GB, free: 12.25 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.9898, allocations: 1.312 kB / 1.346 GB, free: 12.25 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001431/0.9899, allocations: 48.61 kB / 1.346 GB, free: 12.23 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006157/0.9905, allocations: 484.6 kB / 1.347 GB, free: 11.88 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001346/0.9907, allocations: 52.42 kB / 1.347 GB, free: 11.84 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.298e-05/0.9907, allocations: 19.22 kB / 1.347 GB, free: 11.83 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.87e-05/0.9908, allocations: 1.281 kB / 1.347 GB, free: 11.83 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.924e-05/0.9908, allocations: 32.66 kB / 1.347 GB, free: 11.79 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.163e-06/0.9908, allocations: 0 / 1.347 GB, free: 11.79 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0003285/0.9911, allocations: 116.7 kB / 1.347 GB, free: 11.71 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/0.9911, allocations: 53.8 kB / 1.347 GB, free: 11.65 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007484/0.9919, allocations: 0.5734 MB / 1.347 GB, free: 11.41 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.132e-05/0.9919, allocations: 26.92 kB / 1.347 GB, free: 11.38 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.992, allocations: 178.3 kB / 1.348 GB, free: 11.23 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.603e-05/0.9921, allocations: 14.86 kB / 1.348 GB, free: 11.21 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.892e-05/0.9921, allocations: 17.81 kB / 1.348 GB, free: 11.2 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 9.097e-05/0.9922, allocations: 343 kB / 1.348 GB, free: 10.87 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.205e-05/0.9922, allocations: 18.56 kB / 1.348 GB, free: 10.86 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.133e-05/0.9923, allocations: 9.453 kB / 1.348 GB, free: 10.86 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.978e-05/0.9924, allocations: 34.84 kB / 1.348 GB, free: 10.85 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.9924, allocations: 0 / 1.348 GB, free: 10.85 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001683/0.9925, allocations: 93.23 kB / 1.348 GB, free: 10.79 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.9926, allocations: 5.156 kB / 1.348 GB, free: 10.79 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.9926, allocations: 3.938 kB / 1.348 GB, free: 10.79 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.9926, allocations: 5.984 kB / 1.348 GB, free: 10.78 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.085e-05/0.9927, allocations: 7.094 kB / 1.348 GB, free: 10.78 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.9927, allocations: 1.469 kB / 1.348 GB, free: 10.78 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.88e-05/0.9927, allocations: 6.266 kB / 1.348 GB, free: 10.78 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.9928, allocations: 2.047 kB / 1.348 GB, free: 10.78 MB / 1.061 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.0001442/0.9929, allocations: 182.6 kB / 1.348 GB, free: 10.64 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.693e-05/0.993, allocations: 30.62 kB / 1.348 GB, free: 10.62 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002297/0.9932, allocations: 110.8 kB / 1.348 GB, free: 10.55 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.9932, allocations: 4 kB / 1.348 GB, free: 10.54 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.9932, allocations: 1.5 kB / 1.348 GB, free: 10.54 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.778e-06/0.9932, allocations: 0.6719 kB / 1.348 GB, free: 10.54 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003164/0.9935, allocations: 304.9 kB / 1.349 GB, free: 10.3 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.9935, allocations: 4.797 kB / 1.349 GB, free: 10.29 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.938e-05/0.9936, allocations: 7.891 kB / 1.349 GB, free: 10.29 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.9936, allocations: 1.438 kB / 1.349 GB, free: 10.29 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.9936, allocations: 3.938 kB / 1.349 GB, free: 10.29 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.9936, allocations: 1.734 kB / 1.349 GB, free: 10.29 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.9936, allocations: 0 / 1.349 GB, free: 10.29 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001916/0.9938, allocations: 189.3 kB / 1.349 GB, free: 10.13 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 8.461e-05/0.9939, allocations: 118.6 kB / 1.349 GB, free: 10.01 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.614e-05/0.9939, allocations: 5.031 kB / 1.349 GB, free: 10.01 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.207e-05/0.994, allocations: 2.016 kB / 1.349 GB, free: 10.01 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.863e-05/0.994, allocations: 3.031 kB / 1.349 GB, free: 10.01 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.994, allocations: 1.922 kB / 1.349 GB, free: 10.01 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0005547/0.9946, allocations: 440.4 kB / 1.349 GB, free: 9.816 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.9946, allocations: 4 kB / 1.349 GB, free: 9.812 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003007/0.9949, allocations: 30.08 kB / 1.35 GB, free: 9.805 MB / 1.061 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.001688/0.9966, allocations: 0.9725 MB / 1.35 GB, free: 9.035 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001838/0.9968, allocations: 30.92 kB / 1.35 GB, free: 9.027 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.9968, allocations: 5.312 kB / 1.35 GB, free: 9.023 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 5.568e-05/0.9968, allocations: 13.12 kB / 1.351 GB, free: 9.023 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004599/0.9973, allocations: 54.58 kB / 1.351 GB, free: 8.996 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003732/1.001, allocations: 2.969 MB / 1.353 GB, free: 7.227 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/1.001, allocations: 0.7861 MB / 1.354 GB, free: 6.516 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001485/1.001, allocations: 52.08 kB / 1.354 GB, free: 6.508 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001492/1.002, allocations: 96.3 kB / 1.354 GB, free: 6.438 MB / 1.061 GB Notification: Performance of SimCode: time 8.12e-07/1.002, allocations: 1.094 kB / 1.354 GB, free: 6.438 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.025/1.027, allocations: 5.752 MB / 1.36 GB, free: 5.602 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.552/9.578, allocations: 12.3 kB / 1.36 GB, free: 5.594 MB / 1.061 GB " [Timeout remaining time 290] (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/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: 16.335645804996602]