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.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.001341/0.001341, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001416/0.001416, allocations: 217.5 kB / 23.04 MB, free: 5.074 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.439/1.439, allocations: 230.6 MB / 256.8 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.224/3.224, allocations: 0.5003 GB / 0.8061 GB, free: 26.73 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="cs",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.002039/0.002039, allocations: 67.09 kB / 1.171 GB, free: 19.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3266, allocations: 179 MB / 1.345 GB, free: 456 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003423/0.3301, allocations: 1.843 MB / 1.347 GB, free: 14.59 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002092/0.3322, allocations: 1.154 MB / 1.348 GB, free: 13.43 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.3323, allocations: 7.938 kB / 1.348 GB, free: 13.42 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0005991/0.3329, allocations: 187.3 kB / 1.348 GB, free: 13.24 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0006378/0.3335, allocations: 206.1 kB / 1.349 GB, free: 13.04 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006076/0.3341, allocations: 230.2 kB / 1.349 GB, free: 12.82 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000432/0.3346, allocations: 267.3 kB / 1.349 GB, free: 12.55 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001584/0.3347, allocations: 48.73 kB / 1.349 GB, free: 12.51 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002277/0.335, allocations: 107.6 kB / 1.349 GB, free: 12.4 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002481/0.3352, allocations: 175.4 kB / 1.349 GB, free: 12.23 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.837e-05/0.3353, allocations: 20 kB / 1.349 GB, free: 12.21 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001389/0.3354, allocations: 63.97 kB / 1.35 GB, free: 12.15 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.3355, allocations: 91.73 kB / 1.35 GB, free: 12.06 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.3356, allocations: 119.2 kB / 1.35 GB, free: 11.94 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004786/0.3361, allocations: 382.4 kB / 1.35 GB, free: 11.57 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3361, allocations: 0 / 1.35 GB, free: 11.57 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.804e-06/0.3361, allocations: 0 / 1.35 GB, free: 11.57 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.905e-06/0.3361, allocations: 0 / 1.35 GB, free: 11.57 MB / 1.045 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.0009042/0.337, allocations: 0.5592 MB / 1.351 GB, free: 10.98 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/0.3371, allocations: 12.03 kB / 1.351 GB, free: 10.96 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.685e-05/0.3371, allocations: 4.188 kB / 1.351 GB, free: 10.96 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.255e-05/0.3371, allocations: 34.75 kB / 1.351 GB, free: 10.92 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003054/0.3374, allocations: 48.69 kB / 1.351 GB, free: 10.87 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007199/0.3382, allocations: 368.6 kB / 1.351 GB, free: 10.48 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.3382, allocations: 8.125 kB / 1.351 GB, free: 10.48 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.761e-05/0.3382, allocations: 4 kB / 1.351 GB, free: 10.47 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002111/0.3384, allocations: 73.66 kB / 1.351 GB, free: 10.39 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.3384, allocations: 0 / 1.351 GB, free: 10.39 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.3384, allocations: 8 kB / 1.351 GB, free: 10.39 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.3384, allocations: 4 kB / 1.351 GB, free: 10.38 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001392/0.3386, allocations: 43.97 kB / 1.351 GB, free: 10.34 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000649/0.3392, allocations: 455.5 kB / 1.352 GB, free: 9.852 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001425/0.3394, allocations: 54.48 kB / 1.352 GB, free: 9.789 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.095e-05/0.3394, allocations: 20.92 kB / 1.352 GB, free: 9.766 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.688e-05/0.3395, allocations: 3.984 kB / 1.352 GB, free: 9.762 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.3395, allocations: 38.56 kB / 1.352 GB, free: 9.715 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.3395, allocations: 0 / 1.352 GB, free: 9.715 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.0003177/0.3398, allocations: 105.4 kB / 1.352 GB, free: 9.605 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.846e-05/0.3398, allocations: 51.41 kB / 1.352 GB, free: 9.543 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007022/0.3406, allocations: 0.5796 MB / 1.352 GB, free: 8.957 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.3406, allocations: 29.7 kB / 1.352 GB, free: 8.922 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.3407, allocations: 180 kB / 1.353 GB, free: 8.742 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.3407, allocations: 7.906 kB / 1.353 GB, free: 8.734 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.124e-05/0.3408, allocations: 17.72 kB / 1.353 GB, free: 8.711 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001646/0.3409, allocations: 346.8 kB / 1.353 GB, free: 8.363 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.163e-05/0.341, allocations: 12 kB / 1.353 GB, free: 8.352 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.479e-05/0.3411, allocations: 15.98 kB / 1.353 GB, free: 8.336 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000103/0.3412, allocations: 36.84 kB / 1.353 GB, free: 8.297 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3412, allocations: 0 / 1.353 GB, free: 8.297 MB / 1.045 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000186/0.3413, allocations: 89.77 kB / 1.353 GB, free: 8.203 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.3414, allocations: 4 kB / 1.353 GB, free: 8.199 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.3414, allocations: 3.984 kB / 1.353 GB, free: 8.195 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.3414, allocations: 7.922 kB / 1.353 GB, free: 8.188 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-05/0.3415, allocations: 11.98 kB / 1.353 GB, free: 8.176 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.3415, allocations: 0 / 1.353 GB, free: 8.176 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.848e-05/0.3415, allocations: 3.953 kB / 1.353 GB, free: 8.172 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-06/0.3416, allocations: 8 kB / 1.353 GB, free: 8.164 MB / 1.045 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.0001715/0.3417, allocations: 182.5 kB / 1.353 GB, free: 7.977 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.88e-05/0.3418, allocations: 27.81 kB / 1.353 GB, free: 7.949 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002463/0.342, allocations: 108.3 kB / 1.354 GB, free: 7.828 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.342, allocations: 3.938 kB / 1.354 GB, free: 7.824 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.342, allocations: 0 / 1.354 GB, free: 7.824 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.738e-06/0.342, allocations: 4 kB / 1.354 GB, free: 7.82 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003338/0.3424, allocations: 260.6 kB / 1.354 GB, free: 7.523 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3424, allocations: 0 / 1.354 GB, free: 7.523 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.27e-05/0.3424, allocations: 15.92 kB / 1.354 GB, free: 7.508 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3424, allocations: 112 / 1.354 GB, free: 7.508 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.3424, allocations: 7.875 kB / 1.354 GB, free: 7.5 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.3424, allocations: 4 kB / 1.354 GB, free: 7.496 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3424, allocations: 0 / 1.354 GB, free: 7.496 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002205/0.3427, allocations: 187.3 kB / 1.354 GB, free: 7.297 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 7.708e-05/0.3427, allocations: 39.8 kB / 1.354 GB, free: 7.258 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.347e-05/0.3428, allocations: 7.938 kB / 1.354 GB, free: 7.25 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.3429, allocations: 0 / 1.354 GB, free: 7.25 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.174e-05/0.3429, allocations: 11.98 kB / 1.354 GB, free: 7.238 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.3429, allocations: 0 / 1.354 GB, free: 7.238 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0004824/0.3434, allocations: 431.1 kB / 1.354 GB, free: 6.82 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.3434, allocations: 4 kB / 1.354 GB, free: 6.816 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000274/0.3437, allocations: 27.95 kB / 1.354 GB, free: 6.789 MB / 1.045 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.001706/0.3454, allocations: 0.9728 MB / 1.355 GB, free: 5.926 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001622/0.3455, allocations: 39.95 kB / 1.355 GB, free: 5.887 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3455, allocations: 0 / 1.355 GB, free: 5.887 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 5.759e-05/0.3456, allocations: 19.94 kB / 1.355 GB, free: 5.867 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004332/0.346, allocations: 41.41 kB / 1.356 GB, free: 5.824 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00354/0.3496, allocations: 2.966 MB / 1.358 GB, free: 2.781 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004291/0.35, allocations: 0.7986 MB / 1.359 GB, free: 1.953 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001202/0.3501, allocations: 47.25 kB / 1.359 GB, free: 1.91 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.3503, allocations: 95.39 kB / 1.359 GB, free: 1.816 MB / 1.045 GB Notification: Performance of SimCode: time 7.11e-07/0.3503, allocations: 0 / 1.359 GB, free: 1.816 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02705/0.3773, allocations: 5.85 MB / 1.365 GB, free: 12.08 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.22, allocations: 4.062 kB / 1.365 GB, free: 12.08 MB / 1.061 GB " [Timeout remaining time 288] (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/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: 19.08460749994265]