Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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.001286/0.001286, allocations: 103.7 kB / 16.45 MB, free: 6.035 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.00139/0.00139, allocations: 192.5 kB / 19.41 MB, free: 3.539 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.42/1.42, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.117/3.117, allocations: 497.2 MB / 0.7811 GB, free: 33.68 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002511/0.002511, allocations: 66.92 kB / 1.134 GB, free: 33.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.306, allocations: 173.9 MB / 1.304 GB, free: 1.562 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003266/0.3093, allocations: 1.776 MB / 1.306 GB, free: 15.77 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00152/0.3108, allocations: 0.9319 MB / 1.307 GB, free: 14.84 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.912e-05/0.3109, allocations: 4 kB / 1.307 GB, free: 14.83 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0005003/0.3114, allocations: 172.2 kB / 1.307 GB, free: 14.67 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0003858/0.3117, allocations: 186.6 kB / 1.307 GB, free: 14.49 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004414/0.3122, allocations: 202.5 kB / 1.307 GB, free: 14.29 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002938/0.3125, allocations: 243.4 kB / 1.307 GB, free: 14.05 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.3126, allocations: 41.59 kB / 1.307 GB, free: 14.01 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001458/0.3128, allocations: 99.66 kB / 1.308 GB, free: 13.91 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002155/0.313, allocations: 159.5 kB / 1.308 GB, free: 13.76 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.748e-05/0.313, allocations: 20 kB / 1.308 GB, free: 13.74 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001051/0.3131, allocations: 55.92 kB / 1.308 GB, free: 13.68 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.3132, allocations: 79.75 kB / 1.308 GB, free: 13.61 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.3133, allocations: 123.2 kB / 1.308 GB, free: 13.48 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0004214/0.3138, allocations: 358.6 kB / 1.308 GB, free: 13.13 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3138, allocations: 0 / 1.308 GB, free: 13.13 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3138, allocations: 0 / 1.308 GB, free: 13.13 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.207e-05/0.3138, allocations: 0 / 1.308 GB, free: 13.13 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0008983/0.3147, allocations: 0.6068 MB / 1.309 GB, free: 12.48 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.3147, allocations: 8.625 kB / 1.309 GB, free: 12.47 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.306e-05/0.3148, allocations: 46.67 kB / 1.309 GB, free: 12.41 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.618e-05/0.3148, allocations: 32.7 kB / 1.309 GB, free: 12.38 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005599/0.3154, allocations: 414.6 kB / 1.309 GB, free: 11.94 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.3154, allocations: 8.375 kB / 1.309 GB, free: 11.93 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.057e-05/0.3154, allocations: 11.94 kB / 1.309 GB, free: 11.92 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001705/0.3156, allocations: 69.66 kB / 1.309 GB, free: 11.85 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.3156, allocations: 0 / 1.309 GB, free: 11.85 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.3156, allocations: 8 kB / 1.309 GB, free: 11.84 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/0.3156, allocations: 0 / 1.309 GB, free: 11.84 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001319/0.3157, allocations: 55.78 kB / 1.309 GB, free: 11.79 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006251/0.3164, allocations: 484.5 kB / 1.31 GB, free: 11.26 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/0.3165, allocations: 54.55 kB / 1.31 GB, free: 11.2 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.006e-05/0.3165, allocations: 16.86 kB / 1.31 GB, free: 11.18 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.3166, allocations: 3.984 kB / 1.31 GB, free: 11.18 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.3166, allocations: 30.56 kB / 1.31 GB, free: 11.14 MB / 1.014 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.3166, allocations: 0 / 1.31 GB, free: 11.14 MB / 1.014 GB Notification: Performance of matching and sorting (n=3): time 0.0002858/0.3169, allocations: 109.4 kB / 1.31 GB, free: 11.02 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.3169, allocations: 51.41 kB / 1.31 GB, free: 10.96 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000636/0.3176, allocations: 0.5524 MB / 1.311 GB, free: 10.4 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.3176, allocations: 25.7 kB / 1.311 GB, free: 10.37 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.3177, allocations: 179.9 kB / 1.311 GB, free: 10.19 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.014e-05/0.3177, allocations: 11.91 kB / 1.311 GB, free: 10.18 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.506e-05/0.3178, allocations: 13.72 kB / 1.311 GB, free: 10.16 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001542/0.3179, allocations: 346.8 kB / 1.311 GB, free: 9.809 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.521e-05/0.318, allocations: 12 kB / 1.311 GB, free: 9.797 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.208e-05/0.318, allocations: 15.98 kB / 1.311 GB, free: 9.781 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000108/0.3181, allocations: 32.84 kB / 1.311 GB, free: 9.746 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3181, allocations: 0 / 1.311 GB, free: 9.746 MB / 1.014 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001707/0.3183, allocations: 93.42 kB / 1.311 GB, free: 9.648 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.3183, allocations: 4 kB / 1.311 GB, free: 9.645 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.3183, allocations: 4 kB / 1.311 GB, free: 9.641 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.3183, allocations: 7.938 kB / 1.311 GB, free: 9.633 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.812e-05/0.3184, allocations: 7.984 kB / 1.311 GB, free: 9.625 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.3184, allocations: 0 / 1.311 GB, free: 9.625 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.993e-05/0.3185, allocations: 4 kB / 1.311 GB, free: 9.621 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.3185, allocations: 0 / 1.311 GB, free: 9.621 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.0001557/0.3186, allocations: 177.8 kB / 1.312 GB, free: 9.438 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.662e-05/0.3187, allocations: 31.77 kB / 1.312 GB, free: 9.406 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002187/0.3189, allocations: 112.1 kB / 1.312 GB, free: 9.289 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.3189, allocations: 0 / 1.312 GB, free: 9.289 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.3189, allocations: 112 / 1.312 GB, free: 9.289 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.3189, allocations: 3.938 kB / 1.312 GB, free: 9.285 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002978/0.3192, allocations: 289.5 kB / 1.312 GB, free: 8.953 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.3192, allocations: 7.984 kB / 1.312 GB, free: 8.945 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.561e-05/0.3193, allocations: 4 kB / 1.312 GB, free: 8.941 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.3193, allocations: 384 / 1.312 GB, free: 8.941 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.418e-06/0.3193, allocations: 3.938 kB / 1.312 GB, free: 8.938 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3193, allocations: 4 kB / 1.312 GB, free: 8.934 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3193, allocations: 0 / 1.312 GB, free: 8.934 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002075/0.3195, allocations: 195.3 kB / 1.312 GB, free: 8.727 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.3196, allocations: 116.8 kB / 1.312 GB, free: 8.594 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.158e-05/0.3196, allocations: 7.938 kB / 1.312 GB, free: 8.586 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.511e-05/0.3197, allocations: 0 / 1.312 GB, free: 8.586 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.197e-05/0.3198, allocations: 3.984 kB / 1.312 GB, free: 8.582 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.106e-06/0.3198, allocations: 7.938 kB / 1.312 GB, free: 8.574 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0004491/0.3202, allocations: 415.1 kB / 1.313 GB, free: 8.168 MB / 1.014 GB Notification: Performance of sort global known variables: time 1e-07/0.3202, allocations: 4 kB / 1.313 GB, free: 8.164 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.00026/0.3205, allocations: 31.95 kB / 1.313 GB, free: 8.133 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.001672/0.3221, allocations: 0.9622 MB / 1.314 GB, free: 7.285 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0001642/0.3223, allocations: 43.84 kB / 1.314 GB, free: 7.242 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3223, allocations: 0 / 1.314 GB, free: 7.242 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 5.077e-05/0.3224, allocations: 15.98 kB / 1.314 GB, free: 7.227 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004406/0.3228, allocations: 37.48 kB / 1.314 GB, free: 7.191 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003424/0.3262, allocations: 2.897 MB / 1.317 GB, free: 4.223 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004207/0.3266, allocations: 0.7831 MB / 1.317 GB, free: 3.414 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001359/0.3268, allocations: 55.09 kB / 1.318 GB, free: 3.355 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.3269, allocations: 83.41 kB / 1.318 GB, free: 3.273 MB / 1.014 GB Notification: Performance of SimCode: time 5.71e-07/0.3269, allocations: 3.938 kB / 1.318 GB, free: 3.27 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02888/0.3558, allocations: 5.511 MB / 1.323 GB, free: 13.92 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.427/8.782, allocations: 8.828 kB / 1.323 GB, free: 13.92 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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: 15.326595763210207]