Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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.001257/0.001257, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001421/0.001421, allocations: 220.8 kB / 22.26 MB, free: 5.125 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.54/1.54, allocations: 230.6 MB / 256 MB, free: 7.992 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.773/2.773, allocations: 476.8 MB / 0.7707 GB, free: 4.23 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.LinearPiecewiseTwo,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",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.002069/0.002069, allocations: 62.45 kB / 1.117 GB, free: 40.41 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3113/0.3134, allocations: 169.9 MB / 1.283 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.004205/0.3176, allocations: 1.855 MB / 1.285 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002191/0.3197, allocations: 1.154 MB / 1.286 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002262/0.32, allocations: 4 kB / 1.286 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0006529/0.3206, allocations: 180.2 kB / 1.286 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0005788/0.3212, allocations: 224.2 kB / 1.287 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005593/0.3218, allocations: 220.7 kB / 1.287 GB, free: 8.035 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003995/0.3222, allocations: 263.4 kB / 1.287 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.3223, allocations: 37.27 kB / 1.287 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002539/0.3226, allocations: 115.5 kB / 1.287 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002801/0.3229, allocations: 175.4 kB / 1.287 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.711e-05/0.3229, allocations: 24 kB / 1.287 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000131/0.323, allocations: 55.98 kB / 1.288 GB, free: 7.379 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.3232, allocations: 87.73 kB / 1.288 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001261/0.3233, allocations: 127.1 kB / 1.288 GB, free: 7.168 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005045/0.3238, allocations: 374.4 kB / 1.288 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3238, allocations: 0 / 1.288 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.276e-06/0.3238, allocations: 3.984 kB / 1.288 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.939e-06/0.3238, allocations: 0 / 1.288 GB, free: 6.797 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0009355/0.3247, allocations: 0.5624 MB / 1.289 GB, free: 6.203 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.3248, allocations: 12.03 kB / 1.289 GB, free: 6.191 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.334e-05/0.3248, allocations: 38.73 kB / 1.289 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002092/0.325, allocations: 44.7 kB / 1.289 GB, free: 6.102 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006975/0.3257, allocations: 368.7 kB / 1.289 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.204e-06/0.3257, allocations: 4.375 kB / 1.289 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.947e-05/0.3258, allocations: 7.938 kB / 1.289 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.3259, allocations: 69.67 kB / 1.289 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.3259, allocations: 7.984 kB / 1.289 GB, free: 5.625 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.326, allocations: 7.938 kB / 1.289 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.326, allocations: 4 kB / 1.289 GB, free: 5.613 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001276/0.3261, allocations: 47.97 kB / 1.289 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006741/0.3268, allocations: 463.5 kB / 1.29 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000129/0.3269, allocations: 42.56 kB / 1.29 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.636e-05/0.3269, allocations: 20.91 kB / 1.29 GB, free: 4.996 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.327, allocations: 7.984 kB / 1.29 GB, free: 4.988 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.327, allocations: 34.56 kB / 1.29 GB, free: 4.945 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.327, allocations: 0 / 1.29 GB, free: 4.945 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0003099/0.3273, allocations: 113.3 kB / 1.29 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.534e-05/0.3273, allocations: 55.34 kB / 1.29 GB, free: 4.762 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007445/0.3281, allocations: 0.5719 MB / 1.291 GB, free: 4.176 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.3281, allocations: 25.7 kB / 1.291 GB, free: 4.145 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.3283, allocations: 188 kB / 1.291 GB, free: 3.957 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.162e-05/0.3283, allocations: 7.906 kB / 1.291 GB, free: 3.949 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.965e-05/0.3283, allocations: 21.7 kB / 1.291 GB, free: 3.922 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001574/0.3285, allocations: 338.8 kB / 1.291 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.511e-05/0.3285, allocations: 15.98 kB / 1.291 GB, free: 3.566 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.956e-05/0.3286, allocations: 8 kB / 1.291 GB, free: 3.559 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.52e-05/0.3287, allocations: 40.83 kB / 1.291 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3287, allocations: 0 / 1.291 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001824/0.3289, allocations: 93.42 kB / 1.291 GB, free: 3.418 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.3289, allocations: 8 kB / 1.291 GB, free: 3.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.3289, allocations: 0 / 1.291 GB, free: 3.41 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.3289, allocations: 3.938 kB / 1.291 GB, free: 3.406 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.356e-05/0.329, allocations: 4 kB / 1.291 GB, free: 3.402 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.329, allocations: 0 / 1.291 GB, free: 3.402 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.568e-05/0.329, allocations: 7.984 kB / 1.291 GB, free: 3.395 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-06/0.329, allocations: 0 / 1.291 GB, free: 3.395 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: 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.0001697/0.3292, allocations: 189.8 kB / 1.291 GB, free: 3.199 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.057e-05/0.3293, allocations: 31.77 kB / 1.291 GB, free: 3.168 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002383/0.3295, allocations: 116.6 kB / 1.292 GB, free: 3.043 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.3295, allocations: 0 / 1.292 GB, free: 3.043 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.3295, allocations: 0 / 1.292 GB, free: 3.043 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3295, allocations: 4.031 kB / 1.292 GB, free: 3.039 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003053/0.3298, allocations: 264.7 kB / 1.292 GB, free: 2.738 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3298, allocations: 3.938 kB / 1.292 GB, free: 2.734 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.097e-05/0.3299, allocations: 12 kB / 1.292 GB, free: 2.723 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3299, allocations: 0 / 1.292 GB, free: 2.723 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.3299, allocations: 7.922 kB / 1.292 GB, free: 2.715 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3299, allocations: 0 / 1.292 GB, free: 2.715 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3299, allocations: 0 / 1.292 GB, free: 2.715 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002271/0.3301, allocations: 187.3 kB / 1.292 GB, free: 2.516 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.514e-05/0.3302, allocations: 39.75 kB / 1.292 GB, free: 2.477 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.526e-05/0.3302, allocations: 11.86 kB / 1.292 GB, free: 2.465 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.604e-05/0.3303, allocations: 12 kB / 1.292 GB, free: 2.453 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.948e-05/0.3304, allocations: 0 / 1.292 GB, free: 2.453 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.3304, allocations: 4 kB / 1.292 GB, free: 2.449 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0005046/0.3309, allocations: 435.1 kB / 1.292 GB, free: 2.027 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3309, allocations: 0 / 1.292 GB, free: 2.027 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002714/0.3312, allocations: 20 kB / 1.293 GB, free: 2.008 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: 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.00176/0.3329, allocations: 0.9748 MB / 1.293 GB, free: 1.145 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001659/0.3331, allocations: 47.84 kB / 1.294 GB, free: 1.098 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3331, allocations: 0 / 1.294 GB, free: 1.098 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.268e-05/0.3331, allocations: 11.98 kB / 1.294 GB, free: 1.086 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004227/0.3336, allocations: 47.28 kB / 1.294 GB, free: 1.047 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003897/0.3375, allocations: 2.963 MB / 1.296 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005099/0.338, allocations: 0.7909 MB / 1.297 GB, free: 13.19 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001356/0.3381, allocations: 47.27 kB / 1.297 GB, free: 13.14 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.3383, allocations: 91.41 kB / 1.297 GB, free: 13.06 MB / 0.9981 GB Notification: Performance of SimCode: time 7.12e-07/0.3383, allocations: 0 / 1.297 GB, free: 13.06 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03517/0.3734, allocations: 5.798 MB / 1.303 GB, free: 7.344 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.08, allocations: 15.97 kB / 1.303 GB, free: 7.332 MB / 0.9981 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 18.7341136590112]