Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0008522/0.0008522, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008412/0.0008412, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9145/0.9145, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.744/1.744, allocations: 377.8 MB / 0.6221 GB, free: 8.668 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 0.9809 GB, free: 2.59 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.255e-05/1.393e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.586 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001853/0.001867, allocations: 1.705 MB / 0.9826 GB, free: 0.8711 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0006062/0.002473, allocations: 490.8 kB / 0.9831 GB, free: 396 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.693e-05/0.00253, allocations: 3.938 kB / 0.9831 GB, free: 392 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.91e-05/0.002559, allocations: 7.922 kB / 0.9831 GB, free: 384 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.933e-05/0.002628, allocations: 31.73 kB / 0.9831 GB, free: 352 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002123/0.002841, allocations: 43.88 kB / 0.9832 GB, free: 308 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001218/0.002962, allocations: 87.66 kB / 0.9832 GB, free: 220 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.003062, allocations: 16.22 kB / 0.9833 GB, free: 200 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001307/0.003193, allocations: 59.81 kB / 0.9833 GB, free: 140 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 5.812e-05/0.003251, allocations: 31.91 kB / 0.9834 GB, free: 108 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.528e-05/0.003267, allocations: 4 kB / 0.9834 GB, free: 104 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 3.568e-05/0.003302, allocations: 12 kB / 0.9834 GB, free: 92 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.538e-05/0.003318, allocations: 15.97 kB / 0.9834 GB, free: 76 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 2.635e-05/0.003344, allocations: 31.92 kB / 0.9834 GB, free: 44 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001372/0.003481, allocations: 87.77 kB / 0.9835 GB, free: 15.95 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.923e-06/0.003483, allocations: 0 / 0.9835 GB, free: 15.95 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.633e-06/0.003485, allocations: 4 kB / 0.9835 GB, free: 15.95 MB / 0.948 GB Notification: Performance of Transformations before backend: time 3.356e-06/0.003488, allocations: 0 / 0.9835 GB, free: 15.95 MB / 0.948 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.000387/0.003875, allocations: 325.8 kB / 0.9838 GB, free: 15.61 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.003913, allocations: 8.031 kB / 0.9838 GB, free: 15.6 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.917e-05/0.003942, allocations: 38.75 kB / 0.9839 GB, free: 15.55 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.00407, allocations: 36.86 kB / 0.9839 GB, free: 15.52 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001625/0.004232, allocations: 133.6 kB / 0.984 GB, free: 15.36 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.004241, allocations: 4.375 kB / 0.984 GB, free: 15.36 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.032e-05/0.004251, allocations: 4.375 kB / 0.984 GB, free: 15.35 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001538/0.004405, allocations: 117.6 kB / 0.9841 GB, free: 15.22 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.004412, allocations: 192 / 0.9841 GB, free: 15.22 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.004423, allocations: 8.125 kB / 0.9841 GB, free: 15.21 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.004428, allocations: 0 / 0.9841 GB, free: 15.21 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.357e-05/0.004521, allocations: 59.84 kB / 0.9842 GB, free: 15.15 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003244/0.004846, allocations: 271.9 kB / 0.9845 GB, free: 14.84 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 9.278e-05/0.004938, allocations: 58.58 kB / 0.9845 GB, free: 14.78 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.398e-05/0.004982, allocations: 24.94 kB / 0.9845 GB, free: 14.75 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.397e-05/0.004996, allocations: 0 / 0.9845 GB, free: 14.75 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.875e-05/0.005015, allocations: 34.56 kB / 0.9846 GB, free: 14.71 MB / 0.948 GB Notification: Performance of pre-optimization done (n=4): time 7.62e-07/0.005016, allocations: 0 / 0.9846 GB, free: 14.71 MB / 0.948 GB Notification: Performance of matching and sorting (n=4): time 0.000212/0.005228, allocations: 105.5 kB / 0.9847 GB, free: 14.6 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.005262, allocations: 85.09 kB / 0.9848 GB, free: 14.5 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.372e-05/0.005336, allocations: 132.8 kB / 0.9849 GB, free: 14.36 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.202e-05/0.005348, allocations: 25.7 kB / 0.9849 GB, free: 14.33 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.225e-05/0.00539, allocations: 100 kB / 0.985 GB, free: 14.23 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.618e-05/0.005407, allocations: 19.92 kB / 0.985 GB, free: 14.21 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.856e-05/0.005435, allocations: 17.72 kB / 0.985 GB, free: 14.18 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.212e-05/0.005507, allocations: 326.8 kB / 0.9854 GB, free: 13.86 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.291e-05/0.00555, allocations: 23.98 kB / 0.9854 GB, free: 13.83 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.65e-05/0.005607, allocations: 63.41 kB / 0.9854 GB, free: 13.76 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.715e-05/0.005684, allocations: 48.83 kB / 0.9855 GB, free: 13.71 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.005686, allocations: 0 / 0.9855 GB, free: 13.71 MB / 0.948 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001116/0.005798, allocations: 85.56 kB / 0.9856 GB, free: 13.62 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.005809, allocations: 8 kB / 0.9856 GB, free: 13.61 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.005815, allocations: 3.984 kB / 0.9856 GB, free: 13.61 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.005826, allocations: 4.031 kB / 0.9856 GB, free: 13.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.997e-05/0.005886, allocations: 8 kB / 0.9856 GB, free: 13.59 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.00589, allocations: 0 / 0.9856 GB, free: 13.59 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.508e-05/0.005925, allocations: 15.88 kB / 0.9856 GB, free: 13.58 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.204e-06/0.005933, allocations: 8 kB / 0.9856 GB, free: 13.57 MB / 0.948 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 5.754e-05/0.00599, allocations: 121.8 kB / 0.9857 GB, free: 13.44 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/0.006006, allocations: 8.141 kB / 0.9857 GB, free: 13.43 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.9e-05/0.006025, allocations: 12.34 kB / 0.9857 GB, free: 13.42 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.006027, allocations: 0 / 0.9857 GB, free: 13.42 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.006032, allocations: 8 kB / 0.9858 GB, free: 13.41 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.165e-06/0.006034, allocations: 0 / 0.9858 GB, free: 13.41 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001132/0.006147, allocations: 156.6 kB / 0.9859 GB, free: 13.22 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.006148, allocations: 0 / 0.9859 GB, free: 13.22 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.789e-05/0.006176, allocations: 12.17 kB / 0.9859 GB, free: 13.21 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.72e-07/0.006177, allocations: 0 / 0.9859 GB, free: 13.21 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.006184, allocations: 0 / 0.9859 GB, free: 13.21 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.006186, allocations: 7.922 kB / 0.9859 GB, free: 13.2 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.006188, allocations: 3.984 kB / 0.9859 GB, free: 13.2 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001281/0.006316, allocations: 183.4 kB / 0.9861 GB, free: 13 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 9.268e-06/0.006325, allocations: 7.953 kB / 0.9861 GB, free: 12.99 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.329e-05/0.006338, allocations: 3.938 kB / 0.9861 GB, free: 12.99 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.933e-05/0.006388, allocations: 11.98 kB / 0.9861 GB, free: 12.98 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/0.006428, allocations: 11.98 kB / 0.9861 GB, free: 12.96 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.006431, allocations: 0 / 0.9861 GB, free: 12.96 MB / 0.948 GB Notification: Performance of sorting global known variables: time 4.367e-05/0.006475, allocations: 109.5 kB / 0.9862 GB, free: 12.86 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.006475, allocations: 0 / 0.9862 GB, free: 12.86 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001442/0.006619, allocations: 12 kB / 0.9862 GB, free: 12.85 MB / 0.948 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.000291/0.00691, allocations: 0.7206 MB / 0.987 GB, free: 12.1 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001221/0.007032, allocations: 47.97 kB / 0.987 GB, free: 12.05 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.052e-06/0.007033, allocations: 0 / 0.987 GB, free: 12.05 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 4.411e-05/0.007077, allocations: 31.92 kB / 0.987 GB, free: 12.02 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001712/0.007248, allocations: 7.984 kB / 0.987 GB, free: 12.01 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001035/0.008284, allocations: 1.459 MB / 0.9885 GB, free: 10.47 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.677e-05/0.00833, allocations: 75.89 kB / 0.9885 GB, free: 10.37 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.894e-05/0.008359, allocations: 0 / 0.9885 GB, free: 10.37 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.629e-05/0.008406, allocations: 28.48 kB / 0.9886 GB, free: 10.34 MB / 0.948 GB Notification: Performance of SimCode: time 3.21e-07/0.008406, allocations: 4 kB / 0.9886 GB, free: 10.34 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01577/0.02417, allocations: 2.843 MB / 0.9913 GB, free: 7.66 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.843/6.867, allocations: 12.55 kB / 0.9914 GB, free: 7.656 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 10.957282684743404]