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.001262/0.001262, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001395/0.001395, allocations: 219 kB / 23.03 MB, free: 4.945 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.459/1.459, allocations: 230.6 MB / 256.8 MB, free: 7.781 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.142/3.142, allocations: 0.49 GB / 0.7959 GB, free: 35.56 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_12_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.001937/0.001937, allocations: 69.19 kB / 1.155 GB, free: 25.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3349, allocations: 176.1 MB / 1.327 GB, free: 1.57 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003321/0.3382, allocations: 1.784 MB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00185/0.34, allocations: 1.091 MB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.083e-05/0.3401, allocations: 7.938 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005181/0.3407, allocations: 188 kB / 1.33 GB, free: 14.5 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005017/0.3412, allocations: 223 kB / 1.33 GB, free: 14.28 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005343/0.3417, allocations: 226.7 kB / 1.33 GB, free: 14.06 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003393/0.342, allocations: 267.4 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001509/0.3422, allocations: 40.73 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002159/0.3424, allocations: 123.5 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000221/0.3426, allocations: 171.5 kB / 1.331 GB, free: 13.46 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.333e-05/0.3427, allocations: 20 kB / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001187/0.3428, allocations: 51.98 kB / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.3429, allocations: 95.67 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.779e-05/0.343, allocations: 83.41 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004541/0.3434, allocations: 382.4 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.3435, allocations: 0 / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.442e-06/0.3435, allocations: 0 / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.083e-06/0.3435, allocations: 4 kB / 1.331 GB, free: 12.84 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.0008279/0.3443, allocations: 0.5565 MB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.3443, allocations: 12.02 kB / 1.332 GB, free: 12.24 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.076e-05/0.3444, allocations: 8.188 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.457e-05/0.3444, allocations: 34.69 kB / 1.332 GB, free: 12.19 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/0.3446, allocations: 44.69 kB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006269/0.3452, allocations: 368.7 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.3452, allocations: 8.125 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.466e-05/0.3452, allocations: 4 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001963/0.3454, allocations: 81.59 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.3454, allocations: 0 / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-06/0.3454, allocations: 4 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.3454, allocations: 0 / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000131/0.3456, allocations: 55.91 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005679/0.3461, allocations: 415.7 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001385/0.3463, allocations: 54.55 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.407e-05/0.3463, allocations: 16.84 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.3463, allocations: 4 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.3464, allocations: 30.56 kB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.3464, allocations: 4 kB / 1.333 GB, free: 11.03 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0003042/0.3467, allocations: 117.3 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.3467, allocations: 51.41 kB / 1.333 GB, free: 10.85 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006825/0.3474, allocations: 0.5719 MB / 1.334 GB, free: 10.27 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.3474, allocations: 25.7 kB / 1.334 GB, free: 10.23 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/0.3476, allocations: 184 kB / 1.334 GB, free: 10.05 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.11e-05/0.3476, allocations: 11.91 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.84e-05/0.3476, allocations: 17.7 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001599/0.3478, allocations: 342.8 kB / 1.334 GB, free: 9.672 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.691e-05/0.3478, allocations: 19.98 kB / 1.334 GB, free: 9.652 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.241e-05/0.3479, allocations: 15.98 kB / 1.334 GB, free: 9.637 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.31e-05/0.348, allocations: 32.84 kB / 1.334 GB, free: 9.602 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.348, allocations: 0 / 1.334 GB, free: 9.602 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001769/0.3482, allocations: 93.42 kB / 1.334 GB, free: 9.504 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.3482, allocations: 4 kB / 1.334 GB, free: 9.5 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.3482, allocations: 7.938 kB / 1.334 GB, free: 9.492 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.3482, allocations: 0 / 1.334 GB, free: 9.492 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.847e-05/0.3483, allocations: 8 kB / 1.334 GB, free: 9.484 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.3483, allocations: 8.094 kB / 1.334 GB, free: 9.477 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.558e-05/0.3484, allocations: 7.938 kB / 1.334 GB, free: 9.469 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.782e-06/0.3484, allocations: 0 / 1.334 GB, free: 9.469 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.0001744/0.3485, allocations: 177.8 kB / 1.334 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.439e-05/0.3486, allocations: 31.77 kB / 1.335 GB, free: 9.254 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002505/0.3488, allocations: 120.2 kB / 1.335 GB, free: 9.129 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.3489, allocations: 0 / 1.335 GB, free: 9.129 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3489, allocations: 0 / 1.335 GB, free: 9.129 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.3489, allocations: 0 / 1.335 GB, free: 9.129 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003262/0.3492, allocations: 236.6 kB / 1.335 GB, free: 8.855 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3492, allocations: 4 kB / 1.335 GB, free: 8.852 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.055e-05/0.3492, allocations: 8 kB / 1.335 GB, free: 8.844 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.3492, allocations: 0 / 1.335 GB, free: 8.844 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.3493, allocations: 3.938 kB / 1.335 GB, free: 8.84 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3493, allocations: 0 / 1.335 GB, free: 8.84 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3493, allocations: 0 / 1.335 GB, free: 8.84 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002282/0.3495, allocations: 187.7 kB / 1.335 GB, free: 8.641 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.54e-05/0.3496, allocations: 43.83 kB / 1.335 GB, free: 8.598 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.423e-05/0.3496, allocations: 7.938 kB / 1.335 GB, free: 8.59 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.202e-05/0.3497, allocations: 7.922 kB / 1.335 GB, free: 8.582 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.504e-05/0.3497, allocations: 8 kB / 1.335 GB, free: 8.574 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.157e-06/0.3497, allocations: 0 / 1.335 GB, free: 8.574 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004876/0.3502, allocations: 439 kB / 1.336 GB, free: 8.145 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3502, allocations: 0 / 1.336 GB, free: 8.145 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002688/0.3505, allocations: 24 kB / 1.336 GB, free: 8.121 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.00182/0.3523, allocations: 0.9996 MB / 1.337 GB, free: 7.25 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001698/0.3525, allocations: 35.97 kB / 1.337 GB, free: 7.215 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3525, allocations: 3.938 kB / 1.337 GB, free: 7.211 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.194e-05/0.3525, allocations: 11.98 kB / 1.337 GB, free: 7.199 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004245/0.3529, allocations: 44.44 kB / 1.337 GB, free: 7.156 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003628/0.3566, allocations: 2.96 MB / 1.34 GB, free: 4.113 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001942/0.3568, allocations: 178.1 kB / 1.34 GB, free: 3.922 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001466/0.3569, allocations: 47.27 kB / 1.34 GB, free: 3.875 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001576/0.3571, allocations: 99.39 kB / 1.34 GB, free: 3.777 MB / 1.029 GB Notification: Performance of SimCode: time 5.2e-07/0.3571, allocations: 0 / 1.34 GB, free: 3.777 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02669/0.3838, allocations: 5.987 MB / 1.346 GB, free: 13.9 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/11.98, allocations: 15.25 kB / 1.346 GB, free: 13.89 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.741537165013142]