Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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.001496/0.001496, allocations: 104.4 kB / 16.45 MB, free: 6.445 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.0016/0.0016, allocations: 187.7 kB / 19.4 MB, free: 3.66 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.537/1.537, allocations: 225.6 MB / 247.8 MB, free: 3.762 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.794/2.794, allocations: 443.5 MB / 0.7287 GB, free: 14.69 MB / 0.5762 GB " [Timeout remaining time 176] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.ChillerSwitch,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00196/0.00196, allocations: 63.89 kB / 1.056 GB, free: 2.637 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3064, allocations: 160.7 MB / 1.213 GB, free: 1.605 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003027/0.3095, allocations: 1.671 MB / 1.215 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009045/0.3104, allocations: 459.7 kB / 1.215 GB, free: 15.45 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.931e-05/0.3104, allocations: 0 / 1.215 GB, free: 15.45 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.01e-05/0.3104, allocations: 11.86 kB / 1.215 GB, free: 15.44 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.087e-05/0.3105, allocations: 15.8 kB / 1.215 GB, free: 15.43 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001708/0.3107, allocations: 23.97 kB / 1.215 GB, free: 15.4 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001336/0.3108, allocations: 83.72 kB / 1.215 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.3109, allocations: 20.27 kB / 1.215 GB, free: 15.3 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001126/0.3111, allocations: 39.84 kB / 1.215 GB, free: 15.26 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.174e-05/0.3111, allocations: 43.77 kB / 1.215 GB, free: 15.22 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.237e-05/0.3112, allocations: 8 kB / 1.215 GB, free: 15.21 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.371e-05/0.3112, allocations: 4 kB / 1.215 GB, free: 15.21 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.227e-05/0.3112, allocations: 12 kB / 1.215 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.919e-05/0.3112, allocations: 43.72 kB / 1.215 GB, free: 15.15 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001363/0.3114, allocations: 87.58 kB / 1.215 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3114, allocations: 0 / 1.215 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3114, allocations: 4 kB / 1.215 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.3114, allocations: 0 / 1.215 GB, free: 15.06 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005746/0.312, allocations: 391.1 kB / 1.216 GB, free: 14.63 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.312, allocations: 8.031 kB / 1.216 GB, free: 14.62 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.434e-05/0.3121, allocations: 42.75 kB / 1.216 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.468e-05/0.3121, allocations: 8.891 kB / 1.216 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001663/0.3123, allocations: 188.1 kB / 1.216 GB, free: 14.34 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.3123, allocations: 4.375 kB / 1.216 GB, free: 14.34 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.488e-05/0.3123, allocations: 8.375 kB / 1.216 GB, free: 14.33 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002104/0.3125, allocations: 87.5 kB / 1.216 GB, free: 14.23 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.3125, allocations: 7.984 kB / 1.216 GB, free: 14.23 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.3125, allocations: 4 kB / 1.216 GB, free: 14.22 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.3125, allocations: 0 / 1.216 GB, free: 14.22 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001548/0.3127, allocations: 51.91 kB / 1.216 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005063/0.3132, allocations: 320.7 kB / 1.216 GB, free: 13.81 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001425/0.3133, allocations: 54.69 kB / 1.216 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.992e-05/0.3134, allocations: 28.83 kB / 1.217 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.682e-05/0.3134, allocations: 0 / 1.217 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.3135, allocations: 34.56 kB / 1.217 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=4): time 8.12e-07/0.3135, allocations: 0 / 1.217 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4): time 0.0003505/0.3138, allocations: 105.5 kB / 1.217 GB, free: 13.56 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.269e-05/0.3139, allocations: 77.11 kB / 1.217 GB, free: 13.47 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.314, allocations: 133.1 kB / 1.217 GB, free: 13.33 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.314, allocations: 25.7 kB / 1.217 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.773e-05/0.3141, allocations: 108 kB / 1.217 GB, free: 13.19 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.391e-05/0.3141, allocations: 23.84 kB / 1.217 GB, free: 13.16 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.33e-05/0.3142, allocations: 17.7 kB / 1.217 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.3143, allocations: 318.8 kB / 1.217 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.226e-05/0.3144, allocations: 27.97 kB / 1.217 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.119e-05/0.3145, allocations: 37.7 kB / 1.217 GB, free: 12.75 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001426/0.3146, allocations: 48.86 kB / 1.217 GB, free: 12.7 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3146, allocations: 3.938 kB / 1.217 GB, free: 12.7 MB / 0.9669 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001931/0.3148, allocations: 89.61 kB / 1.218 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.3148, allocations: 5.719 kB / 1.218 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.3148, allocations: 0 / 1.218 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.3148, allocations: 0 / 1.218 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.3149, allocations: 11.98 kB / 1.218 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.3149, allocations: 0 / 1.218 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.174e-05/0.315, allocations: 23.88 kB / 1.218 GB, free: 12.56 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.315, allocations: 192 / 1.218 GB, free: 12.56 MB / 0.9669 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.0001046/0.3151, allocations: 117.8 kB / 1.218 GB, free: 12.44 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.991e-05/0.3152, allocations: 7.953 kB / 1.218 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.538e-05/0.3152, allocations: 16.23 kB / 1.218 GB, free: 12.41 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.3152, allocations: 0 / 1.218 GB, free: 12.41 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3152, allocations: 0 / 1.218 GB, free: 12.41 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3152, allocations: 3.938 kB / 1.218 GB, free: 12.41 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002142/0.3154, allocations: 193.6 kB / 1.218 GB, free: 12.17 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3154, allocations: 4 kB / 1.218 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.582e-05/0.3155, allocations: 4 kB / 1.218 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.3155, allocations: 4 kB / 1.218 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.3155, allocations: 3.984 kB / 1.218 GB, free: 12.15 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3155, allocations: 3.938 kB / 1.218 GB, free: 12.15 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3155, allocations: 0 / 1.218 GB, free: 12.15 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002447/0.3158, allocations: 183.4 kB / 1.218 GB, free: 11.95 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.159e-05/0.3158, allocations: 77.11 kB / 1.218 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.135e-05/0.3158, allocations: 4 kB / 1.218 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.3159, allocations: 12.22 kB / 1.218 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.342e-05/0.316, allocations: 7.984 kB / 1.218 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.776e-06/0.316, allocations: 7.938 kB / 1.218 GB, free: 11.83 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.653e-05/0.3161, allocations: 99.27 kB / 1.218 GB, free: 11.73 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3161, allocations: 3.938 kB / 1.218 GB, free: 11.73 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002245/0.3163, allocations: 19.89 kB / 1.218 GB, free: 11.71 MB / 0.9669 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.0006319/0.3169, allocations: 0.728 MB / 1.219 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002007/0.3171, allocations: 47.97 kB / 1.219 GB, free: 10.91 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3171, allocations: 4 kB / 1.219 GB, free: 10.9 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 8.087e-05/0.3172, allocations: 27.92 kB / 1.219 GB, free: 10.88 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/0.3175, allocations: 11.94 kB / 1.219 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.3193, allocations: 1.433 MB / 1.22 GB, free: 9.348 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003462/0.3197, allocations: 0.6962 MB / 1.221 GB, free: 8.625 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.544e-05/0.3197, allocations: 4 kB / 1.221 GB, free: 8.621 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.355e-05/0.3198, allocations: 27.42 kB / 1.221 GB, free: 8.594 MB / 0.9669 GB Notification: Performance of SimCode: time 4e-07/0.3198, allocations: 0 / 1.221 GB, free: 8.594 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02571/0.3455, allocations: 2.086 MB / 1.223 GB, free: 6.66 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.191/8.536, allocations: 6.562 kB / 1.223 GB, free: 6.656 MB / 0.9669 GB " [Timeout remaining time 291] (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_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: 14.786849809344858]