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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 112.9 kB / 16.37 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 193.8 kB / 17.3 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.4/2.4, allocations: 437.1 MB / 0.7112 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 61.47 kB / 0.8707 GB, free: 1.414 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2931, allocations: 151.6 MB / 1.019 GB, free: 9.824 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002855/0.296, allocations: 1.68 MB / 1.02 GB, free: 8.121 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0006793/0.2967, allocations: 452.3 kB / 1.021 GB, free: 7.676 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.988e-05/0.2968, allocations: 4 kB / 1.021 GB, free: 7.672 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.948e-05/0.2968, allocations: 11.92 kB / 1.021 GB, free: 7.66 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.223e-05/0.2969, allocations: 15.8 kB / 1.021 GB, free: 7.645 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001763/0.2971, allocations: 23.97 kB / 1.021 GB, free: 7.621 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001104/0.2972, allocations: 83.66 kB / 1.021 GB, free: 7.539 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.2973, allocations: 27.97 kB / 1.021 GB, free: 7.512 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 9.266e-05/0.2974, allocations: 35.92 kB / 1.021 GB, free: 7.477 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.908e-05/0.2975, allocations: 43.83 kB / 1.021 GB, free: 7.434 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.2975, allocations: 8 kB / 1.021 GB, free: 7.426 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.461e-05/0.2976, allocations: 4 kB / 1.021 GB, free: 7.422 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.253e-05/0.2976, allocations: 15.94 kB / 1.021 GB, free: 7.406 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.443e-05/0.2976, allocations: 39.78 kB / 1.021 GB, free: 7.367 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000122/0.2978, allocations: 83.58 kB / 1.021 GB, free: 7.285 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.2978, allocations: 0 / 1.021 GB, free: 7.285 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.322e-06/0.2978, allocations: 0 / 1.021 GB, free: 7.285 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.99e-06/0.2978, allocations: 0 / 1.021 GB, free: 7.285 MB / 0.795 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.0005011/0.2983, allocations: 399.1 kB / 1.022 GB, free: 6.848 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.2983, allocations: 8.625 kB / 1.022 GB, free: 6.84 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.465e-05/0.2984, allocations: 8.844 kB / 1.022 GB, free: 6.832 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.2985, allocations: 180.2 kB / 1.022 GB, free: 6.617 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.2985, allocations: 4.375 kB / 1.022 GB, free: 6.613 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.447e-05/0.2985, allocations: 4.375 kB / 1.022 GB, free: 6.609 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002009/0.2987, allocations: 103.6 kB / 1.022 GB, free: 6.496 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.2988, allocations: 0 / 1.022 GB, free: 6.496 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.2988, allocations: 0 / 1.022 GB, free: 6.496 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.2988, allocations: 4 kB / 1.022 GB, free: 6.492 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001508/0.2989, allocations: 47.91 kB / 1.022 GB, free: 6.445 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004491/0.2994, allocations: 324.6 kB / 1.022 GB, free: 6.078 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001328/0.2995, allocations: 54.56 kB / 1.022 GB, free: 6.016 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.804e-05/0.2996, allocations: 28.92 kB / 1.022 GB, free: 5.984 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.2997, allocations: 0 / 1.022 GB, free: 5.984 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.2997, allocations: 34.56 kB / 1.022 GB, free: 5.941 MB / 0.795 GB Notification: Performance of pre-optimization done (n=4): time 2.204e-06/0.2997, allocations: 96 / 1.022 GB, free: 5.941 MB / 0.795 GB Notification: Performance of matching and sorting (n=4): time 0.0003159/0.3, allocations: 109.5 kB / 1.022 GB, free: 5.828 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.3001, allocations: 77.11 kB / 1.023 GB, free: 5.734 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.3002, allocations: 132.1 kB / 1.023 GB, free: 5.594 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.3002, allocations: 25.7 kB / 1.023 GB, free: 5.562 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.16e-05/0.3003, allocations: 96.12 kB / 1.023 GB, free: 5.465 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.168e-05/0.3003, allocations: 19.75 kB / 1.023 GB, free: 5.445 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.546e-05/0.3003, allocations: 21.7 kB / 1.023 GB, free: 5.418 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.971e-05/0.3005, allocations: 318.8 kB / 1.023 GB, free: 5.098 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.577e-05/0.3005, allocations: 23.98 kB / 1.023 GB, free: 5.074 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.456e-05/0.3006, allocations: 41.7 kB / 1.023 GB, free: 5.027 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001276/0.3008, allocations: 52.77 kB / 1.023 GB, free: 4.973 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3008, allocations: 3.938 kB / 1.023 GB, free: 4.969 MB / 0.795 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000184/0.301, allocations: 93.59 kB / 1.023 GB, free: 4.871 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.301, allocations: 4 kB / 1.023 GB, free: 4.867 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.301, allocations: 0 / 1.023 GB, free: 4.867 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.301, allocations: 0 / 1.023 GB, free: 4.867 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.989e-05/0.3011, allocations: 11.98 kB / 1.023 GB, free: 4.855 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.3011, allocations: 0 / 1.023 GB, free: 4.855 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.305e-05/0.3012, allocations: 11.98 kB / 1.023 GB, free: 4.844 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.3012, allocations: 3.938 kB / 1.023 GB, free: 4.84 MB / 0.795 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 8.818e-05/0.3013, allocations: 122.4 kB / 1.024 GB, free: 4.711 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.972e-05/0.3013, allocations: 11.91 kB / 1.024 GB, free: 4.699 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.838e-05/0.3014, allocations: 12.25 kB / 1.024 GB, free: 4.688 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3014, allocations: 0 / 1.024 GB, free: 4.688 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.3014, allocations: 0 / 1.024 GB, free: 4.688 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.3014, allocations: 0 / 1.024 GB, free: 4.688 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001748/0.3016, allocations: 193.5 kB / 1.024 GB, free: 4.449 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.3016, allocations: 0 / 1.024 GB, free: 4.449 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.981e-05/0.3017, allocations: 7.984 kB / 1.024 GB, free: 4.441 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.3017, allocations: 4 kB / 1.024 GB, free: 4.438 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.3017, allocations: 4 kB / 1.024 GB, free: 4.434 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3017, allocations: 0 / 1.024 GB, free: 4.434 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.3017, allocations: 192 / 1.024 GB, free: 4.434 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002152/0.3019, allocations: 179.4 kB / 1.024 GB, free: 4.242 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.757e-05/0.302, allocations: 85 kB / 1.024 GB, free: 4.141 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.363e-05/0.302, allocations: 15.94 kB / 1.024 GB, free: 4.125 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.3021, allocations: 11.98 kB / 1.024 GB, free: 4.113 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.982e-05/0.3022, allocations: 11.92 kB / 1.024 GB, free: 4.102 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.3022, allocations: 4 kB / 1.024 GB, free: 4.098 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.845e-05/0.3022, allocations: 105.2 kB / 1.024 GB, free: 3.996 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3022, allocations: 0 / 1.024 GB, free: 3.996 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002207/0.3025, allocations: 15.94 kB / 1.024 GB, free: 3.98 MB / 0.795 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.000106/0.3026, allocations: 99.25 kB / 1.024 GB, free: 3.871 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000205/0.3028, allocations: 59.95 kB / 1.024 GB, free: 3.812 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3028, allocations: 0 / 1.024 GB, free: 3.812 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 8.086e-05/0.3029, allocations: 28.16 kB / 1.024 GB, free: 3.785 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.3032, allocations: 8 kB / 1.024 GB, free: 3.777 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003484/0.3035, allocations: 173.7 kB / 1.024 GB, free: 3.582 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002312/0.3038, allocations: 0.6964 MB / 1.025 GB, free: 2.859 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.582e-05/0.3038, allocations: 3.984 kB / 1.025 GB, free: 2.855 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.523e-05/0.3038, allocations: 15.42 kB / 1.025 GB, free: 2.84 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.3038, allocations: 0 / 1.025 GB, free: 2.84 MB / 0.795 GB Notification: Performance of Templates: time 0.002929/0.3068, allocations: 0.8752 MB / 1.026 GB, free: 1.98 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (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 & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) 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/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches