Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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.001792/0.001792, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002885/0.002885, allocations: 214 kB / 22.25 MB, free: 4.855 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.47/1.47, allocations: 230.6 MB / 256 MB, free: 7.801 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.334/3.334, allocations: 0.5107 GB / 0.8158 GB, free: 17.83 MB / 0.6231 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.ChillerSwitch,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",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.002193/0.002193, allocations: 70.12 kB / 1.186 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.366/0.3682, allocations: 181.9 MB / 1.363 GB, free: 14.11 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003317/0.3715, allocations: 1.693 MB / 1.365 GB, free: 12.4 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001068/0.3726, allocations: 499.9 kB / 1.366 GB, free: 11.91 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.011e-05/0.3727, allocations: 3.938 kB / 1.366 GB, free: 11.9 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.741e-05/0.3727, allocations: 3.938 kB / 1.366 GB, free: 11.9 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.988e-05/0.3728, allocations: 19.8 kB / 1.366 GB, free: 11.88 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002559/0.373, allocations: 51.81 kB / 1.366 GB, free: 11.83 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001598/0.3732, allocations: 83.72 kB / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.3733, allocations: 32.42 kB / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.3735, allocations: 39.8 kB / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.209e-05/0.3735, allocations: 35.84 kB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.099e-05/0.3736, allocations: 8 kB / 1.366 GB, free: 11.63 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 4.99e-05/0.3736, allocations: 8 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.953e-05/0.3736, allocations: 23.91 kB / 1.366 GB, free: 11.6 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.089e-05/0.3737, allocations: 27.86 kB / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000173/0.3739, allocations: 87.62 kB / 1.366 GB, free: 11.48 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.3739, allocations: 0 / 1.366 GB, free: 11.48 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.413e-06/0.3739, allocations: 4 kB / 1.366 GB, free: 11.48 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.117e-06/0.3739, allocations: 4 kB / 1.366 GB, free: 11.48 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005828/0.3744, allocations: 318 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.3745, allocations: 12.03 kB / 1.366 GB, free: 11.12 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.076e-05/0.3745, allocations: 34.75 kB / 1.366 GB, free: 11.08 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002289/0.3748, allocations: 28.86 kB / 1.366 GB, free: 11.05 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002731/0.375, allocations: 140.9 kB / 1.366 GB, free: 10.89 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.405e-06/0.375, allocations: 4.375 kB / 1.366 GB, free: 10.89 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.042e-05/0.3751, allocations: 12.38 kB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002352/0.3753, allocations: 113.2 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.3753, allocations: 3.938 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.3753, allocations: 7.984 kB / 1.367 GB, free: 10.74 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.3753, allocations: 0 / 1.367 GB, free: 10.74 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001644/0.3755, allocations: 47.97 kB / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005/0.376, allocations: 291.7 kB / 1.367 GB, free: 10.36 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000146/0.3761, allocations: 50.56 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.225e-05/0.3762, allocations: 24.94 kB / 1.367 GB, free: 10.28 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.3762, allocations: 4 kB / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.3763, allocations: 34.55 kB / 1.367 GB, free: 10.23 MB / 1.061 GB Notification: Performance of pre-optimization done (n=4): time 1.182e-06/0.3763, allocations: 0 / 1.367 GB, free: 10.23 MB / 1.061 GB Notification: Performance of matching and sorting (n=4): time 0.0003536/0.3766, allocations: 101.6 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.3767, allocations: 81.11 kB / 1.367 GB, free: 10.03 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.3768, allocations: 137.8 kB / 1.367 GB, free: 9.883 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.3768, allocations: 33.64 kB / 1.367 GB, free: 9.844 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.634e-05/0.3769, allocations: 108 kB / 1.367 GB, free: 9.734 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.437e-05/0.3769, allocations: 7.938 kB / 1.367 GB, free: 9.727 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.462e-05/0.377, allocations: 17.72 kB / 1.367 GB, free: 9.703 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001482/0.3771, allocations: 322.8 kB / 1.368 GB, free: 9.379 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.335e-05/0.3772, allocations: 19.98 kB / 1.368 GB, free: 9.359 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001066/0.3773, allocations: 63.41 kB / 1.368 GB, free: 9.285 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001519/0.3775, allocations: 52.86 kB / 1.368 GB, free: 9.23 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.3775, allocations: 0 / 1.368 GB, free: 9.23 MB / 1.061 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002279/0.3777, allocations: 89.56 kB / 1.368 GB, free: 9.137 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.3777, allocations: 4 kB / 1.368 GB, free: 9.133 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3777, allocations: 3.984 kB / 1.368 GB, free: 9.129 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.3777, allocations: 0 / 1.368 GB, free: 9.129 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.3778, allocations: 11.98 kB / 1.368 GB, free: 9.117 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.628e-06/0.3778, allocations: 192 / 1.368 GB, free: 9.117 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.541e-05/0.3779, allocations: 31.88 kB / 1.368 GB, free: 9.086 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.166e-06/0.3779, allocations: 0 / 1.368 GB, free: 9.086 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: 2 (chiSwi.hysteresis.y,$PRE.chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.0001068/0.3781, allocations: 115.4 kB / 1.368 GB, free: 8.965 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.271e-05/0.3781, allocations: 7.953 kB / 1.368 GB, free: 8.957 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.976e-05/0.3781, allocations: 16.33 kB / 1.368 GB, free: 8.93 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3781, allocations: 0 / 1.368 GB, free: 8.93 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3781, allocations: 0 / 1.368 GB, free: 8.93 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.3781, allocations: 3.938 kB / 1.368 GB, free: 8.926 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001997/0.3783, allocations: 152.7 kB / 1.368 GB, free: 8.734 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.3783, allocations: 0 / 1.368 GB, free: 8.734 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.678e-05/0.3784, allocations: 19.92 kB / 1.368 GB, free: 8.715 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.3784, allocations: 0 / 1.368 GB, free: 8.715 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.846e-06/0.3784, allocations: 3.938 kB / 1.368 GB, free: 8.711 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3784, allocations: 0 / 1.368 GB, free: 8.711 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3784, allocations: 0 / 1.368 GB, free: 8.711 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002559/0.3787, allocations: 183.4 kB / 1.369 GB, free: 8.516 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.879e-05/0.3787, allocations: 7.938 kB / 1.369 GB, free: 8.508 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.443e-05/0.3787, allocations: 8 kB / 1.369 GB, free: 8.5 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.3788, allocations: 7.984 kB / 1.369 GB, free: 8.492 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.236e-05/0.3789, allocations: 15.92 kB / 1.369 GB, free: 8.477 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-06/0.3789, allocations: 0 / 1.369 GB, free: 8.477 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.66e-05/0.379, allocations: 105.9 kB / 1.369 GB, free: 8.375 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.379, allocations: 0 / 1.369 GB, free: 8.375 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002421/0.3792, allocations: 16 kB / 1.369 GB, free: 8.359 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: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0005891/0.3798, allocations: 0.7187 MB / 1.369 GB, free: 7.617 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002106/0.38, allocations: 51.91 kB / 1.369 GB, free: 7.566 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.38, allocations: 4 kB / 1.369 GB, free: 7.562 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 8.802e-05/0.3801, allocations: 27.92 kB / 1.369 GB, free: 7.535 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002593/0.3804, allocations: 12.69 kB / 1.369 GB, free: 7.523 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001761/0.3821, allocations: 1.456 MB / 1.371 GB, free: 5.988 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.445e-05/0.3822, allocations: 79.89 kB / 1.371 GB, free: 5.887 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.547e-05/0.3823, allocations: 4 kB / 1.371 GB, free: 5.883 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.618e-05/0.3823, allocations: 23.42 kB / 1.371 GB, free: 5.859 MB / 1.061 GB Notification: Performance of SimCode: time 6.21e-07/0.3823, allocations: 0 / 1.371 GB, free: 5.859 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03197/0.4143, allocations: 2.695 MB / 1.374 GB, free: 3.32 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.38, allocations: 7.266 kB / 1.374 GB, free: 3.316 MB / 1.061 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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: 18.243598601780832]