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.001849/0.001849, allocations: 103.6 kB / 18.95 MB, free: 2.543 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.002449/0.002449, allocations: 221.4 kB / 22.25 MB, free: 4.867 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.463/1.463, allocations: 230.6 MB / 256 MB, free: 7.801 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.139/3.139, allocations: 0.4892 GB / 0.7943 GB, free: 35.7 MB / 0.6231 GB " [Timeout remaining time 177] 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.002069/0.002069, allocations: 69.97 kB / 1.153 GB, free: 25.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.3249, allocations: 176.1 MB / 1.325 GB, free: 2.363 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.00322/0.3281, allocations: 1.781 MB / 1.327 GB, free: 0.5742 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001847/0.33, allocations: 1.091 MB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.116e-05/0.3301, allocations: 7.938 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005234/0.3306, allocations: 199.8 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0004931/0.3311, allocations: 207.2 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004966/0.3316, allocations: 224.1 kB / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003395/0.3319, allocations: 275.3 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.3321, allocations: 40.73 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001995/0.3323, allocations: 115.5 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002307/0.3325, allocations: 175.4 kB / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.461e-05/0.3325, allocations: 20 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.3327, allocations: 55.98 kB / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.3328, allocations: 87.69 kB / 1.329 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.76e-05/0.3329, allocations: 79.41 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004585/0.3333, allocations: 394.3 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3333, allocations: 0 / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3333, allocations: 4 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.948e-06/0.3333, allocations: 0 / 1.33 GB, free: 13.63 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.0009/0.3342, allocations: 0.5547 MB / 1.33 GB, free: 13.05 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.3343, allocations: 12.03 kB / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.055e-05/0.3343, allocations: 34.75 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001853/0.3345, allocations: 44.69 kB / 1.33 GB, free: 12.95 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006641/0.3352, allocations: 376.6 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.247e-06/0.3352, allocations: 4.375 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.987e-05/0.3352, allocations: 7.938 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.3354, allocations: 77.66 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.3354, allocations: 0 / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.3354, allocations: 4 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.3354, allocations: 4 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001305/0.3355, allocations: 43.97 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006617/0.3362, allocations: 427.6 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001418/0.3363, allocations: 54.48 kB / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.823e-05/0.3364, allocations: 16.92 kB / 1.331 GB, free: 11.87 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.3364, allocations: 4 kB / 1.331 GB, free: 11.87 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.3364, allocations: 30.56 kB / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.3364, allocations: 0 / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.000312/0.3368, allocations: 109.4 kB / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.169e-05/0.3368, allocations: 51.41 kB / 1.331 GB, free: 11.65 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000759/0.3376, allocations: 0.5796 MB / 1.332 GB, free: 11.06 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.3376, allocations: 25.7 kB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.3377, allocations: 176 kB / 1.332 GB, free: 10.85 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.604e-05/0.3378, allocations: 19.89 kB / 1.332 GB, free: 10.83 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.715e-05/0.3378, allocations: 13.72 kB / 1.332 GB, free: 10.81 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001696/0.338, allocations: 346.8 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.248e-05/0.338, allocations: 11.98 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.64e-05/0.3381, allocations: 15.98 kB / 1.333 GB, free: 10.44 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001023/0.3382, allocations: 37.11 kB / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.3382, allocations: 0 / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001801/0.3383, allocations: 89.48 kB / 1.333 GB, free: 10.3 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.3384, allocations: 8 kB / 1.333 GB, free: 10.3 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.3384, allocations: 3.938 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.3384, allocations: 3.938 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.985e-05/0.3385, allocations: 15.92 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.595e-06/0.3385, allocations: 3.984 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.474e-05/0.3385, allocations: 4 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.3385, allocations: 0 / 1.333 GB, free: 10.27 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.0001761/0.3387, allocations: 181.8 kB / 1.333 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.255e-05/0.3388, allocations: 35.77 kB / 1.333 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002504/0.339, allocations: 108.3 kB / 1.333 GB, free: 9.93 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.339, allocations: 0 / 1.333 GB, free: 9.93 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.339, allocations: 0 / 1.333 GB, free: 9.93 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.339, allocations: 4 kB / 1.333 GB, free: 9.926 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003035/0.3393, allocations: 236.8 kB / 1.333 GB, free: 9.652 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.3393, allocations: 3.938 kB / 1.333 GB, free: 9.648 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.164e-05/0.3394, allocations: 11.94 kB / 1.333 GB, free: 9.637 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3394, allocations: 0 / 1.333 GB, free: 9.637 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.799e-06/0.3394, allocations: 3.938 kB / 1.333 GB, free: 9.633 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.3394, allocations: 0 / 1.333 GB, free: 9.633 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.3394, allocations: 3.984 kB / 1.333 GB, free: 9.629 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002441/0.3397, allocations: 191.3 kB / 1.334 GB, free: 9.426 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.127e-05/0.3397, allocations: 35.81 kB / 1.334 GB, free: 9.391 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.297e-05/0.3398, allocations: 7.938 kB / 1.334 GB, free: 9.383 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.54e-05/0.3399, allocations: 7.984 kB / 1.334 GB, free: 9.375 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.289e-05/0.3399, allocations: 4 kB / 1.334 GB, free: 9.371 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.3399, allocations: 0 / 1.334 GB, free: 9.371 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0005114/0.3404, allocations: 431.1 kB / 1.334 GB, free: 8.953 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3404, allocations: 4 kB / 1.334 GB, free: 8.949 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002637/0.3407, allocations: 24 kB / 1.334 GB, free: 8.926 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.0018/0.3425, allocations: 1.002 MB / 1.335 GB, free: 8.055 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001647/0.3427, allocations: 35.91 kB / 1.335 GB, free: 8.02 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3427, allocations: 0 / 1.335 GB, free: 8.02 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.917e-05/0.3427, allocations: 23.92 kB / 1.335 GB, free: 7.996 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004225/0.3431, allocations: 46.36 kB / 1.335 GB, free: 7.953 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003654/0.3468, allocations: 2.956 MB / 1.338 GB, free: 4.914 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002056/0.347, allocations: 186.1 kB / 1.338 GB, free: 4.715 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001181/0.3471, allocations: 47.27 kB / 1.338 GB, free: 4.668 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001553/0.3473, allocations: 95.39 kB / 1.338 GB, free: 4.574 MB / 1.029 GB Notification: Performance of SimCode: time 5.91e-07/0.3473, allocations: 0 / 1.338 GB, free: 4.574 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0348/0.3821, allocations: 6.355 MB / 1.344 GB, free: 14.29 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.71, allocations: 0 / 1.344 GB, free: 14.29 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.31763063883409]