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.001479/0.001479, allocations: 107.6 kB / 18.95 MB, free: 2.805 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.001843/0.001843, allocations: 213.1 kB / 22.24 MB, free: 5.117 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.442/1.442, allocations: 230.6 MB / 256 MB, free: 7.781 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.699/2.699, allocations: 476 MB / 0.7699 GB, free: 4.734 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.002118/0.002118, allocations: 67.91 kB / 1.117 GB, free: 41.02 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3189, allocations: 170 MB / 1.283 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003686/0.3226, allocations: 1.79 MB / 1.284 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001899/0.3245, allocations: 1.08 MB / 1.285 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.545e-05/0.3246, allocations: 7.938 kB / 1.285 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.000531/0.3251, allocations: 184 kB / 1.286 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0004958/0.3256, allocations: 221.4 kB / 1.286 GB, free: 9.164 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005483/0.3262, allocations: 220.2 kB / 1.286 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004134/0.3266, allocations: 271.3 kB / 1.286 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.3268, allocations: 40.5 kB / 1.286 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002175/0.327, allocations: 111.6 kB / 1.286 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002334/0.3272, allocations: 167.5 kB / 1.287 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.417e-05/0.3272, allocations: 20 kB / 1.287 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000117/0.3274, allocations: 55.97 kB / 1.287 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001174/0.3275, allocations: 95.69 kB / 1.287 GB, free: 8.207 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.375e-05/0.3276, allocations: 83.34 kB / 1.287 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004428/0.328, allocations: 384.2 kB / 1.287 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.328, allocations: 0 / 1.287 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.282e-06/0.328, allocations: 0 / 1.287 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.328, allocations: 0 / 1.287 GB, free: 7.75 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.0008543/0.3289, allocations: 0.5641 MB / 1.288 GB, free: 7.156 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.3289, allocations: 12.03 kB / 1.288 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.156e-05/0.329, allocations: 38.73 kB / 1.288 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001683/0.3291, allocations: 40.7 kB / 1.288 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006392/0.3298, allocations: 380.7 kB / 1.288 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.103e-06/0.3298, allocations: 384 / 1.288 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/0.3298, allocations: 7.938 kB / 1.288 GB, free: 6.652 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001901/0.33, allocations: 77.61 kB / 1.288 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.33, allocations: 0 / 1.288 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.33, allocations: 4 kB / 1.288 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.33, allocations: 0 / 1.288 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001263/0.3301, allocations: 43.97 kB / 1.288 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006262/0.3308, allocations: 435.6 kB / 1.289 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/0.3309, allocations: 50.56 kB / 1.289 GB, free: 5.996 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.423e-05/0.331, allocations: 16.91 kB / 1.289 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.331, allocations: 8 kB / 1.289 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.331, allocations: 30.56 kB / 1.289 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.331, allocations: 0 / 1.289 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0002985/0.3313, allocations: 109.3 kB / 1.289 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.436e-05/0.3314, allocations: 55.39 kB / 1.289 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007118/0.3321, allocations: 0.5719 MB / 1.29 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.3321, allocations: 29.7 kB / 1.29 GB, free: 5.133 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/0.3323, allocations: 180 kB / 1.29 GB, free: 4.953 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.186e-05/0.3323, allocations: 11.95 kB / 1.29 GB, free: 4.941 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.472e-05/0.3323, allocations: 9.719 kB / 1.29 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001742/0.3325, allocations: 350.8 kB / 1.29 GB, free: 4.574 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.02e-05/0.3325, allocations: 11.98 kB / 1.29 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.001e-05/0.3326, allocations: 12 kB / 1.29 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001023/0.3327, allocations: 40.77 kB / 1.29 GB, free: 4.508 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.3327, allocations: 0 / 1.29 GB, free: 4.508 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001777/0.3329, allocations: 97.44 kB / 1.29 GB, free: 4.406 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.3329, allocations: 7.938 kB / 1.29 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.3329, allocations: 4 kB / 1.29 GB, free: 4.395 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.3329, allocations: 7.938 kB / 1.29 GB, free: 4.387 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.051e-05/0.333, allocations: 4 kB / 1.29 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.333, allocations: 0 / 1.29 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.467e-05/0.3331, allocations: 4 kB / 1.29 GB, free: 4.379 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/0.3331, allocations: 3.984 kB / 1.29 GB, free: 4.375 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.0001707/0.3332, allocations: 182.3 kB / 1.29 GB, free: 4.188 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.877e-05/0.3333, allocations: 31.77 kB / 1.29 GB, free: 4.156 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002383/0.3335, allocations: 116.3 kB / 1.291 GB, free: 4.031 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.3335, allocations: 4 kB / 1.291 GB, free: 4.027 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.3335, allocations: 0 / 1.291 GB, free: 4.027 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.3335, allocations: 0 / 1.291 GB, free: 4.027 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003037/0.3338, allocations: 236.6 kB / 1.291 GB, free: 3.754 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3338, allocations: 0 / 1.291 GB, free: 3.754 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.184e-05/0.3339, allocations: 12.36 kB / 1.291 GB, free: 3.742 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3339, allocations: 0 / 1.291 GB, free: 3.742 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.3339, allocations: 4.047 kB / 1.291 GB, free: 3.738 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.3339, allocations: 3.938 kB / 1.291 GB, free: 3.734 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3339, allocations: 4 kB / 1.291 GB, free: 3.73 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002387/0.3341, allocations: 199.2 kB / 1.291 GB, free: 3.52 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.883e-05/0.3342, allocations: 35.8 kB / 1.291 GB, free: 3.484 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.57e-05/0.3343, allocations: 7.938 kB / 1.291 GB, free: 3.477 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.968e-05/0.3344, allocations: 0 / 1.291 GB, free: 3.477 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.578e-05/0.3344, allocations: 7.984 kB / 1.291 GB, free: 3.469 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.3344, allocations: 4 kB / 1.291 GB, free: 3.465 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000502/0.3349, allocations: 431.1 kB / 1.291 GB, free: 3.047 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3349, allocations: 0 / 1.291 GB, free: 3.047 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002624/0.3352, allocations: 28 kB / 1.291 GB, free: 3.02 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.00191/0.3371, allocations: 0.9892 MB / 1.292 GB, free: 2.16 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001699/0.3372, allocations: 43.86 kB / 1.292 GB, free: 2.117 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3373, allocations: 0 / 1.292 GB, free: 2.117 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.429e-05/0.3373, allocations: 15.98 kB / 1.293 GB, free: 2.102 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004175/0.3377, allocations: 46.52 kB / 1.293 GB, free: 2.062 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003792/0.3415, allocations: 2.953 MB / 1.295 GB, free: 15.03 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002062/0.3417, allocations: 186.1 kB / 1.296 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001246/0.3418, allocations: 51.44 kB / 1.296 GB, free: 14.78 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001468/0.342, allocations: 91.39 kB / 1.296 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of SimCode: time 4.2e-07/0.342, allocations: 4 kB / 1.296 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03328/0.3753, allocations: 6.35 MB / 1.302 GB, free: 8.414 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.55, allocations: 3.984 kB / 1.302 GB, free: 8.41 MB / 0.9981 GB " [Timeout remaining time 288] (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.16546597192064]