Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001949/0.001949, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002521/0.002521, allocations: 215.7 kB / 22.25 MB, free: 5.262 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.518/1.518, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.704/2.704, allocations: 476 MB / 0.7699 GB, free: 4.742 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_11_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.002157/0.002157, allocations: 66.61 kB / 1.117 GB, free: 41.1 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3604, allocations: 170 MB / 1.283 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003165/0.3636, allocations: 1.692 MB / 1.284 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009744/0.3645, allocations: 488.7 kB / 1.285 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.203e-05/0.3646, allocations: 3.938 kB / 1.285 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.758e-05/0.3646, allocations: 11.92 kB / 1.285 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.949e-05/0.3647, allocations: 19.8 kB / 1.285 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002549/0.365, allocations: 43.89 kB / 1.285 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001548/0.3651, allocations: 83.7 kB / 1.285 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.3653, allocations: 28.2 kB / 1.285 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.3654, allocations: 43.8 kB / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.606e-05/0.3655, allocations: 31.84 kB / 1.285 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.88e-05/0.3655, allocations: 4 kB / 1.285 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.539e-05/0.3656, allocations: 23.98 kB / 1.285 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.447e-05/0.3656, allocations: 19.92 kB / 1.285 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.78e-05/0.3656, allocations: 27.88 kB / 1.285 GB, free: 9.984 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000167/0.3658, allocations: 97.23 kB / 1.285 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3658, allocations: 0 / 1.285 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.933e-06/0.3658, allocations: 0 / 1.285 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.3658, allocations: 0 / 1.285 GB, free: 9.891 MB / 0.9825 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.0005472/0.3663, allocations: 314 kB / 1.285 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.3664, allocations: 8.031 kB / 1.285 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.565e-05/0.3664, allocations: 46.67 kB / 1.285 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002151/0.3666, allocations: 32.83 kB / 1.285 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002578/0.3669, allocations: 130.4 kB / 1.286 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.3669, allocations: 8.375 kB / 1.286 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.521e-05/0.3669, allocations: 384 / 1.286 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/0.3672, allocations: 125.1 kB / 1.286 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.3672, allocations: 0 / 1.286 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.3672, allocations: 0 / 1.286 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.3672, allocations: 0 / 1.286 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001616/0.3673, allocations: 55.97 kB / 1.286 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000482/0.3678, allocations: 291.8 kB / 1.286 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001504/0.368, allocations: 42.56 kB / 1.286 GB, free: 8.727 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.824e-05/0.3681, allocations: 28.94 kB / 1.286 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.3681, allocations: 3.984 kB / 1.286 GB, free: 8.691 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.3681, allocations: 38.5 kB / 1.286 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 1.083e-06/0.3681, allocations: 4 kB / 1.286 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.000341/0.3685, allocations: 105.6 kB / 1.286 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.694e-05/0.3685, allocations: 81.11 kB / 1.286 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.3686, allocations: 140.2 kB / 1.286 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.3687, allocations: 25.7 kB / 1.287 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.996e-05/0.3687, allocations: 108 kB / 1.287 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.128e-05/0.3687, allocations: 11.91 kB / 1.287 GB, free: 8.137 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.152e-05/0.3688, allocations: 13.72 kB / 1.287 GB, free: 8.117 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3689, allocations: 326.8 kB / 1.287 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.408e-05/0.369, allocations: 23.98 kB / 1.287 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.686e-05/0.3691, allocations: 63.41 kB / 1.287 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.3692, allocations: 44.83 kB / 1.287 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3692, allocations: 0 / 1.287 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002012/0.3694, allocations: 97.48 kB / 1.287 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.3695, allocations: 8 kB / 1.287 GB, free: 7.535 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.3695, allocations: 4.031 kB / 1.287 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.3695, allocations: 0 / 1.287 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.3696, allocations: 11.98 kB / 1.287 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.94e-06/0.3696, allocations: 0 / 1.287 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.139e-05/0.3697, allocations: 15.92 kB / 1.287 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.3697, allocations: 0 / 1.287 GB, free: 7.504 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: 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.0001032/0.3698, allocations: 114.9 kB / 1.287 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.151e-05/0.3698, allocations: 7.953 kB / 1.287 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.469e-05/0.3698, allocations: 12.34 kB / 1.287 GB, free: 7.359 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.3699, allocations: 4 kB / 1.287 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.3699, allocations: 0 / 1.287 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.3699, allocations: 3.938 kB / 1.287 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001936/0.3701, allocations: 156.8 kB / 1.287 GB, free: 7.156 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.3701, allocations: 7.938 kB / 1.288 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.294e-05/0.3701, allocations: 15.98 kB / 1.288 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-06/0.3701, allocations: 0 / 1.288 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.3701, allocations: 0 / 1.288 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.3701, allocations: 0 / 1.288 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.3701, allocations: 0 / 1.288 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002521/0.3704, allocations: 183.4 kB / 1.288 GB, free: 6.938 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.652e-05/0.3704, allocations: 11.89 kB / 1.288 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.023e-05/0.3704, allocations: 0 / 1.288 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.3705, allocations: 11.98 kB / 1.288 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.193e-05/0.3706, allocations: 15.92 kB / 1.288 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.059e-06/0.3706, allocations: 0 / 1.288 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.812e-05/0.3707, allocations: 109.4 kB / 1.288 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3707, allocations: 0 / 1.288 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002271/0.3709, allocations: 12 kB / 1.288 GB, free: 6.781 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: 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.0005521/0.3715, allocations: 0.7166 MB / 1.289 GB, free: 6.039 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002126/0.3717, allocations: 51.95 kB / 1.289 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3717, allocations: 0 / 1.289 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.55e-05/0.3718, allocations: 31.91 kB / 1.289 GB, free: 5.957 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002546/0.372, allocations: 11.94 kB / 1.289 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/0.3738, allocations: 1.452 MB / 1.29 GB, free: 4.41 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.889e-05/0.3738, allocations: 87.62 kB / 1.29 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.882e-05/0.3739, allocations: 7.984 kB / 1.29 GB, free: 4.293 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.081e-05/0.3739, allocations: 23.44 kB / 1.29 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of SimCode: time 4.11e-07/0.374, allocations: 0 / 1.29 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03089/0.4048, allocations: 2.687 MB / 1.293 GB, free: 1.734 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.38, allocations: 12.5 kB / 1.293 GB, free: 1.727 MB / 0.9825 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.039533828385174]