Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001572/0.001572, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001965/0.001965, allocations: 216.4 kB / 22.25 MB, free: 5.113 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.539/1.539, allocations: 230.6 MB / 256 MB, free: 8.223 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.18/3.18, allocations: 0.49 GB / 0.7951 GB, free: 33.37 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.LinearPiecewiseTwo,fileNamePrefix="Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_12_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.00205/0.00205, allocations: 73.3 kB / 1.154 GB, free: 25.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3327, allocations: 176.1 MB / 1.326 GB, free: 1.957 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003552/0.3363, allocations: 1.839 MB / 1.328 GB, free: 112 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00207/0.3383, allocations: 1.158 MB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.3385, allocations: 3.938 kB / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005403/0.339, allocations: 187.2 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005431/0.3395, allocations: 228.8 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005477/0.3401, allocations: 218.2 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004019/0.3405, allocations: 267.3 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.3406, allocations: 44.72 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002398/0.3409, allocations: 115.6 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002554/0.3411, allocations: 179.4 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.508e-05/0.3412, allocations: 20 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.3413, allocations: 55.98 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.3414, allocations: 87.73 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001175/0.3415, allocations: 119.2 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004613/0.342, allocations: 378.4 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.342, allocations: 0 / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.092e-06/0.342, allocations: 0 / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.254e-05/0.342, allocations: 4 kB / 1.331 GB, free: 13.08 MB / 1.029 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.0008939/0.3429, allocations: 0.5625 MB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.3429, allocations: 8.031 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.174e-05/0.343, allocations: 34.73 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001966/0.3432, allocations: 52.69 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006522/0.3438, allocations: 368.6 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.3438, allocations: 8.312 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.584e-05/0.3439, allocations: 3.938 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001746/0.344, allocations: 81.61 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.344, allocations: 0 / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.3441, allocations: 3.984 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.3441, allocations: 4 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001314/0.3442, allocations: 47.97 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006518/0.3448, allocations: 459.5 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000135/0.345, allocations: 50.5 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.6e-05/0.345, allocations: 20.91 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.3451, allocations: 0 / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.3451, allocations: 30.56 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.3451, allocations: 0 / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0003016/0.3454, allocations: 113.4 kB / 1.332 GB, free: 11.12 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.685e-05/0.3454, allocations: 55.34 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006964/0.3461, allocations: 0.5719 MB / 1.333 GB, free: 10.47 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.531e-05/0.3461, allocations: 25.7 kB / 1.333 GB, free: 10.44 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.3463, allocations: 184 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.083e-05/0.3463, allocations: 11.91 kB / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.792e-05/0.3464, allocations: 17.7 kB / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.3465, allocations: 342.8 kB / 1.334 GB, free: 9.875 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.394e-05/0.3466, allocations: 15.98 kB / 1.334 GB, free: 9.859 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.254e-05/0.3466, allocations: 15.98 kB / 1.334 GB, free: 9.844 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.212e-05/0.3467, allocations: 32.84 kB / 1.334 GB, free: 9.809 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3467, allocations: 0 / 1.334 GB, free: 9.809 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001747/0.3469, allocations: 89.48 kB / 1.334 GB, free: 9.715 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.3469, allocations: 4 kB / 1.334 GB, free: 9.711 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.3469, allocations: 3.938 kB / 1.334 GB, free: 9.707 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.3469, allocations: 3.938 kB / 1.334 GB, free: 9.703 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.017e-05/0.347, allocations: 8 kB / 1.334 GB, free: 9.695 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.347, allocations: 0 / 1.334 GB, free: 9.695 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.525e-05/0.347, allocations: 11.98 kB / 1.334 GB, free: 9.684 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.929e-06/0.347, allocations: 0 / 1.334 GB, free: 9.684 MB / 1.029 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.0001642/0.3472, allocations: 181.8 kB / 1.334 GB, free: 9.496 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.886e-05/0.3473, allocations: 31.77 kB / 1.334 GB, free: 9.465 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002174/0.3475, allocations: 108.3 kB / 1.334 GB, free: 9.352 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.3475, allocations: 0 / 1.334 GB, free: 9.352 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3475, allocations: 0 / 1.334 GB, free: 9.352 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.3475, allocations: 4 kB / 1.334 GB, free: 9.348 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003053/0.3478, allocations: 272.6 kB / 1.334 GB, free: 9.039 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3478, allocations: 112 / 1.334 GB, free: 9.039 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.007e-05/0.3479, allocations: 15.86 kB / 1.334 GB, free: 9.023 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.3479, allocations: 3.938 kB / 1.334 GB, free: 9.02 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.3479, allocations: 11.94 kB / 1.334 GB, free: 9.008 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3479, allocations: 0 / 1.334 GB, free: 9.008 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3479, allocations: 0 / 1.334 GB, free: 9.008 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002444/0.3481, allocations: 191.7 kB / 1.335 GB, free: 8.805 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.778e-05/0.3482, allocations: 43.8 kB / 1.335 GB, free: 8.762 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.436e-05/0.3482, allocations: 3.938 kB / 1.335 GB, free: 8.758 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.28e-05/0.3483, allocations: 4 kB / 1.335 GB, free: 8.754 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.921e-05/0.3484, allocations: 0 / 1.335 GB, free: 8.754 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.3484, allocations: 3.984 kB / 1.335 GB, free: 8.75 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0005045/0.3489, allocations: 435.1 kB / 1.335 GB, free: 8.324 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3489, allocations: 0 / 1.335 GB, free: 8.324 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002706/0.3491, allocations: 27.94 kB / 1.335 GB, free: 8.297 MB / 1.029 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.001731/0.3509, allocations: 0.9724 MB / 1.336 GB, free: 7.434 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001574/0.351, allocations: 35.92 kB / 1.336 GB, free: 7.398 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.351, allocations: 0 / 1.336 GB, free: 7.398 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.471e-05/0.3511, allocations: 15.92 kB / 1.336 GB, free: 7.383 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003857/0.3515, allocations: 39.23 kB / 1.336 GB, free: 7.344 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003683/0.3552, allocations: 2.964 MB / 1.339 GB, free: 4.297 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000433/0.3556, allocations: 0.787 MB / 1.34 GB, free: 3.484 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001167/0.3557, allocations: 47.25 kB / 1.34 GB, free: 3.441 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.3559, allocations: 103.6 kB / 1.34 GB, free: 3.34 MB / 1.029 GB Notification: Performance of SimCode: time 3.41e-07/0.3559, allocations: 3.938 kB / 1.34 GB, free: 3.336 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03426/0.3901, allocations: 5.815 MB / 1.346 GB, free: 13.61 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.78, allocations: 8 kB / 1.346 GB, free: 13.61 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.546512266853824]