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.001506/0.001506, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001815/0.001815, allocations: 217.6 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.447/1.447, allocations: 230.6 MB / 256.8 MB, free: 7.98 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.707/2.707, allocations: 476.7 MB / 0.7714 GB, free: 4.305 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_11_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.001944/0.001944, allocations: 63.92 kB / 1.118 GB, free: 8.992 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3408/0.3427, allocations: 169.9 MB / 1.284 GB, free: 3.836 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003889/0.3466, allocations: 1.846 MB / 1.286 GB, free: 1.977 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002133/0.3487, allocations: 1.154 MB / 1.287 GB, free: 0.8164 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.3489, allocations: 7.938 kB / 1.287 GB, free: 0.8086 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005549/0.3494, allocations: 180.6 kB / 1.287 GB, free: 0.6367 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0005346/0.35, allocations: 221.3 kB / 1.287 GB, free: 432 kB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005467/0.3505, allocations: 223.9 kB / 1.288 GB, free: 212 kB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004232/0.3509, allocations: 267.4 kB / 1.288 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.3511, allocations: 36.8 kB / 1.288 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002642/0.3514, allocations: 115.6 kB / 1.288 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002585/0.3516, allocations: 171.4 kB / 1.288 GB, free: 15.63 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.895e-05/0.3516, allocations: 24 kB / 1.288 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001289/0.3518, allocations: 59.97 kB / 1.288 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.3519, allocations: 87.73 kB / 1.288 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.352, allocations: 123.2 kB / 1.289 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004583/0.3525, allocations: 382.4 kB / 1.289 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3525, allocations: 0 / 1.289 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3525, allocations: 0 / 1.289 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.302e-06/0.3525, allocations: 0 / 1.289 GB, free: 14.96 MB / 0.9981 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.000826/0.3533, allocations: 0.5547 MB / 1.289 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.3533, allocations: 8.031 kB / 1.289 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.532e-05/0.3534, allocations: 8.188 kB / 1.289 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.429e-05/0.3534, allocations: 38.69 kB / 1.289 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001858/0.3536, allocations: 44.69 kB / 1.29 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006379/0.3542, allocations: 372.7 kB / 1.29 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-06/0.3542, allocations: 4.125 kB / 1.29 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.3542, allocations: 8 kB / 1.29 GB, free: 13.87 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001768/0.3544, allocations: 77.66 kB / 1.29 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.3544, allocations: 0 / 1.29 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.237e-06/0.3544, allocations: 4 kB / 1.29 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.3544, allocations: 0 / 1.29 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001312/0.3546, allocations: 51.91 kB / 1.29 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006266/0.3552, allocations: 455.6 kB / 1.29 GB, free: 13.25 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001378/0.3553, allocations: 50.67 kB / 1.29 GB, free: 13.19 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.076e-05/0.3554, allocations: 20.8 kB / 1.291 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.031e-05/0.3554, allocations: 7.984 kB / 1.291 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.3554, allocations: 34.56 kB / 1.291 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.3554, allocations: 0 / 1.291 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0003022/0.3557, allocations: 109.3 kB / 1.291 GB, free: 13 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.3558, allocations: 51.41 kB / 1.291 GB, free: 12.94 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007263/0.3565, allocations: 0.5758 MB / 1.291 GB, free: 12.35 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.3565, allocations: 29.7 kB / 1.291 GB, free: 12.32 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/0.3567, allocations: 180 kB / 1.291 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.3567, allocations: 7.953 kB / 1.291 GB, free: 12.13 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.696e-05/0.3567, allocations: 13.72 kB / 1.291 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001701/0.3569, allocations: 346.8 kB / 1.292 GB, free: 11.76 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.169e-05/0.357, allocations: 15.94 kB / 1.292 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.185e-05/0.357, allocations: 11.98 kB / 1.292 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001064/0.3571, allocations: 36.84 kB / 1.292 GB, free: 11.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3571, allocations: 4 kB / 1.292 GB, free: 11.69 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001785/0.3573, allocations: 97.38 kB / 1.292 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.3573, allocations: 4 kB / 1.292 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3573, allocations: 3.938 kB / 1.292 GB, free: 11.58 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.3573, allocations: 0 / 1.292 GB, free: 11.58 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.487e-05/0.3574, allocations: 11.98 kB / 1.292 GB, free: 11.57 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.3574, allocations: 0 / 1.292 GB, free: 11.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.118e-05/0.3575, allocations: 0 / 1.292 GB, free: 11.57 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.3575, allocations: 12 kB / 1.292 GB, free: 11.56 MB / 0.9981 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.0001699/0.3576, allocations: 183.1 kB / 1.292 GB, free: 11.37 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.871e-05/0.3577, allocations: 35.77 kB / 1.292 GB, free: 11.34 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002253/0.3579, allocations: 108.3 kB / 1.292 GB, free: 11.22 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.3579, allocations: 3.938 kB / 1.292 GB, free: 11.21 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.3579, allocations: 0 / 1.292 GB, free: 11.21 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.3579, allocations: 0 / 1.292 GB, free: 11.21 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002947/0.3582, allocations: 260.6 kB / 1.293 GB, free: 10.92 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.3582, allocations: 11.98 kB / 1.293 GB, free: 10.91 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.593e-05/0.3583, allocations: 4 kB / 1.293 GB, free: 10.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.3583, allocations: 0 / 1.293 GB, free: 10.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.118e-06/0.3583, allocations: 3.938 kB / 1.293 GB, free: 10.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3583, allocations: 0 / 1.293 GB, free: 10.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3583, allocations: 7.938 kB / 1.293 GB, free: 10.89 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002248/0.3585, allocations: 191.7 kB / 1.293 GB, free: 10.69 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.981e-05/0.3586, allocations: 39.8 kB / 1.293 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.173e-05/0.3586, allocations: 7.938 kB / 1.293 GB, free: 10.64 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.213e-05/0.3587, allocations: 4 kB / 1.293 GB, free: 10.64 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.283e-05/0.3588, allocations: 7.984 kB / 1.293 GB, free: 10.63 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.3588, allocations: 0 / 1.293 GB, free: 10.63 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004836/0.3592, allocations: 435 kB / 1.293 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3592, allocations: 0 / 1.293 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002644/0.3595, allocations: 28 kB / 1.293 GB, free: 10.18 MB / 0.9981 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.001822/0.3613, allocations: 0.9671 MB / 1.294 GB, free: 9.32 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001572/0.3615, allocations: 35.97 kB / 1.294 GB, free: 9.285 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3615, allocations: 3.938 kB / 1.294 GB, free: 9.281 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 5.347e-05/0.3615, allocations: 19.94 kB / 1.294 GB, free: 9.262 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004191/0.362, allocations: 49.89 kB / 1.294 GB, free: 9.219 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003708/0.3657, allocations: 2.959 MB / 1.297 GB, free: 6.188 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004424/0.3661, allocations: 0.7948 MB / 1.298 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001176/0.3662, allocations: 51.27 kB / 1.298 GB, free: 5.312 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/0.3664, allocations: 91.58 kB / 1.298 GB, free: 5.223 MB / 0.9981 GB Notification: Performance of SimCode: time 3.11e-07/0.3664, allocations: 4 kB / 1.298 GB, free: 5.219 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02904/0.3954, allocations: 5.832 MB / 1.304 GB, free: 15.49 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.05, allocations: 9.266 kB / 1.304 GB, free: 15.48 MB / 1.014 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.61461299302755]