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.001667/0.001667, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002399/0.002399, allocations: 219.2 kB / 22.26 MB, free: 5.082 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.543/1.543, allocations: 230.6 MB / 256 MB, free: 8.02 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.278/3.278, allocations: 0.505 GB / 0.8101 GB, free: 22.05 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_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.002244/0.002244, allocations: 60.86 kB / 1.177 GB, free: 17.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3486/0.3508, allocations: 180.2 MB / 1.353 GB, free: 8.504 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003713/0.3545, allocations: 1.845 MB / 1.355 GB, free: 6.648 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002127/0.3566, allocations: 1.158 MB / 1.356 GB, free: 5.484 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.3568, allocations: 3.938 kB / 1.356 GB, free: 5.48 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.000558/0.3573, allocations: 181.8 kB / 1.356 GB, free: 5.305 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0005706/0.3579, allocations: 228.4 kB / 1.356 GB, free: 5.082 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005603/0.3585, allocations: 217.3 kB / 1.356 GB, free: 4.875 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004242/0.3589, allocations: 271.3 kB / 1.357 GB, free: 4.609 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.359, allocations: 44.72 kB / 1.357 GB, free: 4.566 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002533/0.3593, allocations: 111.6 kB / 1.357 GB, free: 4.457 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002938/0.3596, allocations: 183.4 kB / 1.357 GB, free: 4.277 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.3e-05/0.3596, allocations: 20 kB / 1.357 GB, free: 4.258 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.3598, allocations: 51.98 kB / 1.357 GB, free: 4.207 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001449/0.3599, allocations: 91.73 kB / 1.357 GB, free: 4.117 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.3601, allocations: 119.2 kB / 1.357 GB, free: 4 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005132/0.3606, allocations: 374.4 kB / 1.358 GB, free: 3.633 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.3606, allocations: 3.984 kB / 1.358 GB, free: 3.629 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.214e-06/0.3606, allocations: 0 / 1.358 GB, free: 3.629 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.784e-05/0.3606, allocations: 4 kB / 1.358 GB, free: 3.625 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.000987/0.3616, allocations: 0.5586 MB / 1.358 GB, free: 3.035 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.3616, allocations: 8.031 kB / 1.358 GB, free: 3.027 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.162e-05/0.3617, allocations: 38.73 kB / 1.358 GB, free: 2.98 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001957/0.3619, allocations: 44.7 kB / 1.358 GB, free: 2.938 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007031/0.3626, allocations: 372.6 kB / 1.359 GB, free: 2.551 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.3626, allocations: 8.375 kB / 1.359 GB, free: 2.543 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.63e-05/0.3626, allocations: 3.938 kB / 1.359 GB, free: 2.539 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001811/0.3628, allocations: 73.67 kB / 1.359 GB, free: 2.461 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.3628, allocations: 4 kB / 1.359 GB, free: 2.457 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.3628, allocations: 0 / 1.359 GB, free: 2.457 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.3628, allocations: 4 kB / 1.359 GB, free: 2.453 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001334/0.3629, allocations: 47.97 kB / 1.359 GB, free: 2.406 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007423/0.3637, allocations: 455.6 kB / 1.359 GB, free: 1.918 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001612/0.3639, allocations: 46.5 kB / 1.359 GB, free: 1.863 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.814e-05/0.3639, allocations: 28.95 kB / 1.359 GB, free: 1.832 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.714e-05/0.3639, allocations: 7.922 kB / 1.359 GB, free: 1.824 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.364, allocations: 30.56 kB / 1.359 GB, free: 1.785 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 1.473e-06/0.364, allocations: 0 / 1.359 GB, free: 1.785 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.0003292/0.3643, allocations: 109.4 kB / 1.359 GB, free: 1.672 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.3644, allocations: 55.41 kB / 1.359 GB, free: 1.605 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007592/0.3651, allocations: 0.5719 MB / 1.36 GB, free: 1.023 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.807e-05/0.3651, allocations: 29.64 kB / 1.36 GB, free: 0.9883 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.3653, allocations: 184 kB / 1.36 GB, free: 0.8047 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.564e-05/0.3653, allocations: 15.89 kB / 1.36 GB, free: 0.7891 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.632e-05/0.3654, allocations: 13.7 kB / 1.36 GB, free: 0.7695 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000182/0.3655, allocations: 346.8 kB / 1.361 GB, free: 432 kB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.544e-05/0.3656, allocations: 11.98 kB / 1.361 GB, free: 420 kB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.159e-05/0.3656, allocations: 12 kB / 1.361 GB, free: 408 kB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001053/0.3657, allocations: 40.83 kB / 1.361 GB, free: 364 kB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3657, allocations: 0 / 1.361 GB, free: 364 kB / 1.045 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001875/0.3659, allocations: 89.48 kB / 1.361 GB, free: 268 kB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.3659, allocations: 4 kB / 1.361 GB, free: 264 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.3659, allocations: 0 / 1.361 GB, free: 264 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.366, allocations: 3.938 kB / 1.361 GB, free: 260 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.845e-05/0.366, allocations: 11.94 kB / 1.361 GB, free: 248 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.366, allocations: 0 / 1.361 GB, free: 248 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.415e-05/0.3661, allocations: 11.94 kB / 1.361 GB, free: 236 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.74e-06/0.3661, allocations: 4 kB / 1.361 GB, free: 232 kB / 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.0001974/0.3663, allocations: 189.7 kB / 1.361 GB, free: 32 kB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.991e-05/0.3664, allocations: 27.81 kB / 1.361 GB, free: 4 kB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002618/0.3666, allocations: 108.3 kB / 1.361 GB, free: 15.89 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.3666, allocations: 0 / 1.361 GB, free: 15.89 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.247e-06/0.3667, allocations: 0 / 1.361 GB, free: 15.89 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.3667, allocations: 8 kB / 1.361 GB, free: 15.88 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003193/0.367, allocations: 264.6 kB / 1.361 GB, free: 15.58 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.367, allocations: 4 kB / 1.361 GB, free: 15.57 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.143e-05/0.367, allocations: 7.938 kB / 1.361 GB, free: 15.57 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.367, allocations: 0 / 1.361 GB, free: 15.57 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.367, allocations: 11.92 kB / 1.361 GB, free: 15.55 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.367, allocations: 0 / 1.361 GB, free: 15.55 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.367, allocations: 0 / 1.361 GB, free: 15.55 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002286/0.3673, allocations: 187.2 kB / 1.362 GB, free: 15.36 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 8.759e-05/0.3674, allocations: 43.81 kB / 1.362 GB, free: 15.31 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.3674, allocations: 8.344 kB / 1.362 GB, free: 15.3 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.3675, allocations: 0 / 1.362 GB, free: 15.3 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.986e-05/0.3675, allocations: 4 kB / 1.362 GB, free: 15.3 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.3675, allocations: 3.938 kB / 1.362 GB, free: 15.3 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0005274/0.3681, allocations: 439.1 kB / 1.362 GB, free: 14.87 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3681, allocations: 0 / 1.362 GB, free: 14.87 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002758/0.3683, allocations: 23.95 kB / 1.362 GB, free: 14.84 MB / 1.061 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.001777/0.3701, allocations: 0.9786 MB / 1.363 GB, free: 13.97 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000167/0.3703, allocations: 31.91 kB / 1.363 GB, free: 13.94 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3703, allocations: 0 / 1.363 GB, free: 13.94 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 6.138e-05/0.3704, allocations: 23.92 kB / 1.363 GB, free: 13.92 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000433/0.3708, allocations: 39.11 kB / 1.363 GB, free: 13.88 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003975/0.3748, allocations: 2.965 MB / 1.366 GB, free: 10.84 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004845/0.3752, allocations: 0.7909 MB / 1.367 GB, free: 10.02 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001646/0.3754, allocations: 47.25 kB / 1.367 GB, free: 9.977 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001671/0.3756, allocations: 95.41 kB / 1.367 GB, free: 9.883 MB / 1.061 GB Notification: Performance of SimCode: time 9.42e-07/0.3756, allocations: 4 kB / 1.367 GB, free: 9.879 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03672/0.4123, allocations: 5.816 MB / 1.373 GB, free: 4.164 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.93, allocations: 3.422 kB / 1.373 GB, free: 4.164 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: 18.77899208595045]