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.001028/0.001028, 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.0009082/0.0009082, 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.9089/0.9089, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.715/1.715, allocations: 377.8 MB / 0.6221 GB, free: 8.664 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.834e-06/1.834e-06, allocations: 0 / 0.981 GB, free: 2.594 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.242e-05/2.426e-05, allocations: 5.094 kB / 0.981 GB, free: 2.59 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002916/0.00294, allocations: 1.69 MB / 0.9826 GB, free: 0.8867 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0009036/0.003844, allocations: 498.7 kB / 0.9831 GB, free: 404 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.683e-05/0.003921, allocations: 4 kB / 0.9831 GB, free: 400 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.941e-05/0.00396, allocations: 7.875 kB / 0.9831 GB, free: 392 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 8.631e-05/0.004046, allocations: 19.78 kB / 0.9831 GB, free: 372 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002736/0.00432, allocations: 55.81 kB / 0.9832 GB, free: 316 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001473/0.004467, allocations: 87.66 kB / 0.9832 GB, free: 228 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.004583, allocations: 16.22 kB / 0.9833 GB, free: 208 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001879/0.004771, allocations: 55.88 kB / 0.9833 GB, free: 152 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 7.751e-05/0.004849, allocations: 31.91 kB / 0.9833 GB, free: 120 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.266e-05/0.004871, allocations: 8 kB / 0.9834 GB, free: 112 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 4.47e-05/0.004916, allocations: 8 kB / 0.9834 GB, free: 104 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.27e-05/0.004939, allocations: 19.92 kB / 0.9834 GB, free: 84 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 3.311e-05/0.004972, allocations: 19.98 kB / 0.9834 GB, free: 64 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001818/0.005153, allocations: 95.67 kB / 0.9835 GB, free: 15.97 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.005156, allocations: 4 kB / 0.9835 GB, free: 15.96 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.212e-06/0.005157, allocations: 3.938 kB / 0.9835 GB, free: 15.96 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.005161, allocations: 0 / 0.9835 GB, free: 15.96 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.0004745/0.005636, allocations: 329.8 kB / 0.9838 GB, free: 15.61 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.005678, allocations: 12.03 kB / 0.9838 GB, free: 15.6 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.372e-05/0.005712, allocations: 30.75 kB / 0.9839 GB, free: 15.56 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/0.005875, allocations: 32.86 kB / 0.9839 GB, free: 15.53 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000204/0.006079, allocations: 137.6 kB / 0.984 GB, free: 15.37 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.00609, allocations: 4.375 kB / 0.984 GB, free: 15.36 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/0.006104, allocations: 4.375 kB / 0.984 GB, free: 15.36 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001951/0.006299, allocations: 121.5 kB / 0.9841 GB, free: 15.22 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.006306, allocations: 192 / 0.9841 GB, free: 15.22 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.006319, allocations: 4.125 kB / 0.9841 GB, free: 15.22 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.006325, allocations: 4 kB / 0.9842 GB, free: 15.21 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001336/0.006459, allocations: 47.95 kB / 0.9842 GB, free: 15.17 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004107/0.006869, allocations: 287.8 kB / 0.9845 GB, free: 14.84 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001212/0.00699, allocations: 42.56 kB / 0.9845 GB, free: 14.79 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.632e-05/0.007057, allocations: 32.94 kB / 0.9845 GB, free: 14.76 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.626e-05/0.007073, allocations: 0 / 0.9845 GB, free: 14.76 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.463e-05/0.007098, allocations: 30.56 kB / 0.9846 GB, free: 14.72 MB / 0.948 GB Notification: Performance of pre-optimization done (n=4): time 8.42e-07/0.007098, allocations: 0 / 0.9846 GB, free: 14.72 MB / 0.948 GB Notification: Performance of matching and sorting (n=4): time 0.0002942/0.007393, allocations: 113.6 kB / 0.9847 GB, free: 14.6 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.007435, allocations: 77.11 kB / 0.9848 GB, free: 14.51 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.007542, allocations: 136.2 kB / 0.9849 GB, free: 14.37 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001564/0.007698, allocations: 25.7 kB / 0.9849 GB, free: 14.34 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.562e-05/0.007754, allocations: 104 kB / 0.985 GB, free: 14.23 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.892e-05/0.007773, allocations: 11.94 kB / 0.985 GB, free: 14.22 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.293e-05/0.007815, allocations: 17.7 kB / 0.985 GB, free: 14.2 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.256e-05/0.007908, allocations: 322.8 kB / 0.9853 GB, free: 13.87 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.536e-05/0.007973, allocations: 27.97 kB / 0.9854 GB, free: 13.84 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.145e-05/0.008055, allocations: 67.41 kB / 0.9854 GB, free: 13.77 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001157/0.008171, allocations: 52.77 kB / 0.9855 GB, free: 13.71 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.008173, allocations: 0 / 0.9855 GB, free: 13.71 MB / 0.948 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001656/0.008338, allocations: 85.62 kB / 0.9856 GB, free: 13.62 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.008352, allocations: 4 kB / 0.9856 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.008357, allocations: 0 / 0.9856 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.00837, allocations: 3.938 kB / 0.9856 GB, free: 13.61 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.197e-05/0.008452, allocations: 16.02 kB / 0.9856 GB, free: 13.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.69e-06/0.008458, allocations: 0 / 0.9856 GB, free: 13.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.809e-05/0.008556, allocations: 15.94 kB / 0.9856 GB, free: 13.58 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.008564, allocations: 0 / 0.9856 GB, free: 13.58 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 7.13e-05/0.008635, allocations: 117.8 kB / 0.9857 GB, free: 13.46 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.189e-05/0.008657, allocations: 8.141 kB / 0.9857 GB, free: 13.45 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.403e-05/0.008681, allocations: 20.33 kB / 0.9857 GB, free: 13.43 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.008683, allocations: 0 / 0.9857 GB, free: 13.43 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.008688, allocations: 4 kB / 0.9857 GB, free: 13.43 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.00869, allocations: 3.938 kB / 0.9858 GB, free: 13.42 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001225/0.008813, allocations: 156.9 kB / 0.9859 GB, free: 13.23 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.008814, allocations: 3.938 kB / 0.9859 GB, free: 13.22 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.467e-05/0.008859, allocations: 11.98 kB / 0.9859 GB, free: 13.21 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-06/0.008862, allocations: 3.984 kB / 0.9859 GB, free: 13.21 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.008869, allocations: 0 / 0.9859 GB, free: 13.21 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.008871, allocations: 0 / 0.9859 GB, free: 13.21 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.008873, allocations: 4 kB / 0.9859 GB, free: 13.2 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00015/0.009023, allocations: 179.4 kB / 0.9861 GB, free: 13.01 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.013e-05/0.009033, allocations: 3.953 kB / 0.9861 GB, free: 13.01 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.57e-05/0.009049, allocations: 8 kB / 0.9861 GB, free: 13 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.107e-05/0.0091, allocations: 7.984 kB / 0.9861 GB, free: 12.99 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/0.009144, allocations: 15.97 kB / 0.9861 GB, free: 12.98 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.009148, allocations: 0 / 0.9861 GB, free: 12.98 MB / 0.948 GB Notification: Performance of sorting global known variables: time 4.287e-05/0.009191, allocations: 107.2 kB / 0.9862 GB, free: 12.87 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.009191, allocations: 3.938 kB / 0.9862 GB, free: 12.87 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001556/0.009346, allocations: 15.94 kB / 0.9863 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.0003256/0.009672, allocations: 0.7129 MB / 0.9869 GB, free: 12.11 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001328/0.009805, allocations: 55.89 kB / 0.987 GB, free: 12.05 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.009806, allocations: 0 / 0.987 GB, free: 12.05 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 4.26e-05/0.009849, allocations: 27.98 kB / 0.987 GB, free: 12.03 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001829/0.01003, allocations: 6.5 kB / 0.987 GB, free: 12.02 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.01105, allocations: 1.466 MB / 0.9885 GB, free: 10.47 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.939e-05/0.0111, allocations: 75.89 kB / 0.9885 GB, free: 10.38 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 3.363e-05/0.01113, allocations: 7.938 kB / 0.9885 GB, free: 10.37 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.841e-05/0.01118, allocations: 24.48 kB / 0.9886 GB, free: 10.34 MB / 0.948 GB Notification: Performance of SimCode: time 8.22e-07/0.01118, allocations: 0 / 0.9886 GB, free: 10.34 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01592/0.02711, allocations: 2.84 MB / 0.9913 GB, free: 7.672 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.86/6.887, allocations: 3.406 kB / 0.9913 GB, free: 7.672 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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv --start-time 0 --stop-time 86400 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 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.csv","/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] "Error: Could not read variable chiSwi.TSet in file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv. Warning: Get data of variable chiSwi.TSet from file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv failed! Error: Could not read variable chiSwi.chiCHWST in file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv. Warning: Get data of variable chiSwi.chiCHWST from file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv failed! Error: Could not read variable chiSwi.y in file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv. Warning: Get data of variable chiSwi.y from file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.043476126156747]