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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001843/0.001843, allocations: 102.7 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002078/0.002078, allocations: 188.6 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 225.6 MB / 247.8 MB, free: 3.734 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.774/2.774, allocations: 476.7 MB / 0.7611 GB, free: 15.7 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 71.88 kB / 1.104 GB, free: 6.59 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9038/0.9057, allocations: 168.7 MB / 1.269 GB, free: 7.633 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003077/0.9088, allocations: 1.791 MB / 1.27 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001323/0.9101, allocations: 0.927 MB / 1.271 GB, free: 5.871 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.172e-05/0.9102, allocations: 5.594 kB / 1.271 GB, free: 5.867 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005322/0.9107, allocations: 186.8 kB / 1.272 GB, free: 5.797 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.000374/0.9111, allocations: 166.5 kB / 1.272 GB, free: 5.723 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004507/0.9115, allocations: 208 kB / 1.272 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003334/0.9119, allocations: 243.5 kB / 1.272 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001391/0.912, allocations: 47.14 kB / 1.272 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.9122, allocations: 102.1 kB / 1.272 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002358/0.9124, allocations: 164 kB / 1.272 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.1e-05/0.9125, allocations: 23.52 kB / 1.272 GB, free: 5.391 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.9126, allocations: 41.81 kB / 1.273 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.9127, allocations: 89.31 kB / 1.273 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 8.823e-05/0.9128, allocations: 112.5 kB / 1.273 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003758/0.9131, allocations: 357.4 kB / 1.273 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.9131, allocations: 0 / 1.273 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.393e-06/0.9131, allocations: 0 / 1.273 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.893e-06/0.9131, allocations: 3.766 kB / 1.273 GB, free: 5.121 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.00071/0.9139, allocations: 0.6211 MB / 1.274 GB, free: 4.57 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.9139, allocations: 10.12 kB / 1.274 GB, free: 4.57 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.197e-05/0.9139, allocations: 37.69 kB / 1.274 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.707e-05/0.914, allocations: 39.17 kB / 1.274 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004918/0.9145, allocations: 412.4 kB / 1.274 GB, free: 4.199 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.9145, allocations: 10.09 kB / 1.274 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.366e-05/0.9145, allocations: 7.531 kB / 1.274 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001581/0.9147, allocations: 82 kB / 1.274 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.9147, allocations: 0 / 1.274 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.9147, allocations: 0.75 kB / 1.274 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.9147, allocations: 5.984 kB / 1.274 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001218/0.9148, allocations: 44.39 kB / 1.274 GB, free: 4.117 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005287/0.9153, allocations: 489.7 kB / 1.275 GB, free: 3.754 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000121/0.9155, allocations: 44.59 kB / 1.275 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.874e-05/0.9155, allocations: 18.66 kB / 1.275 GB, free: 3.711 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.9155, allocations: 1.062 kB / 1.275 GB, free: 3.711 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.599e-05/0.9155, allocations: 32.03 kB / 1.275 GB, free: 3.672 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.9155, allocations: 0.625 kB / 1.275 GB, free: 3.672 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0002869/0.9158, allocations: 112.8 kB / 1.275 GB, free: 3.602 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.297e-05/0.9159, allocations: 52.72 kB / 1.275 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006365/0.9165, allocations: 0.5535 MB / 1.276 GB, free: 3.297 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 9.498e-06/0.9165, allocations: 26.61 kB / 1.276 GB, free: 3.266 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 9.376e-05/0.9166, allocations: 172.4 kB / 1.276 GB, free: 3.121 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.9166, allocations: 14.28 kB / 1.276 GB, free: 3.109 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.963e-05/0.9166, allocations: 17.03 kB / 1.276 GB, free: 3.09 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.547e-05/0.9167, allocations: 347.2 kB / 1.276 GB, free: 2.762 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.812e-05/0.9168, allocations: 9.734 kB / 1.276 GB, free: 2.762 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.052e-05/0.9168, allocations: 13.44 kB / 1.276 GB, free: 2.758 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.739e-05/0.9169, allocations: 38.28 kB / 1.276 GB, free: 2.738 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.9169, allocations: 0.875 kB / 1.276 GB, free: 2.738 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001526/0.917, allocations: 88.34 kB / 1.276 GB, free: 2.684 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.9171, allocations: 9.375 kB / 1.276 GB, free: 2.68 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.9171, allocations: 0.8125 kB / 1.276 GB, free: 2.68 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.9171, allocations: 7.938 kB / 1.276 GB, free: 2.672 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.32e-05/0.9171, allocations: 8.359 kB / 1.276 GB, free: 2.672 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.9171, allocations: 4.75 kB / 1.276 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.437e-05/0.9172, allocations: 2.672 kB / 1.276 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-06/0.9172, allocations: 1.688 kB / 1.276 GB, free: 2.668 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.0001199/0.9173, allocations: 182.3 kB / 1.276 GB, free: 2.527 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.148e-05/0.9174, allocations: 28.19 kB / 1.276 GB, free: 2.512 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002014/0.9176, allocations: 110.4 kB / 1.277 GB, free: 2.445 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.9176, allocations: 0 / 1.277 GB, free: 2.445 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.9176, allocations: 2.484 kB / 1.277 GB, free: 2.445 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.9176, allocations: 384 / 1.277 GB, free: 2.445 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002345/0.9178, allocations: 280.5 kB / 1.277 GB, free: 2.219 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.9178, allocations: 0 / 1.277 GB, free: 2.219 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.828e-05/0.9179, allocations: 7.375 kB / 1.277 GB, free: 2.219 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.9179, allocations: 1 kB / 1.277 GB, free: 2.219 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.937e-06/0.9179, allocations: 11.17 kB / 1.277 GB, free: 2.211 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.9179, allocations: 0 / 1.277 GB, free: 2.211 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.9179, allocations: 5.219 kB / 1.277 GB, free: 2.207 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001625/0.9181, allocations: 194 kB / 1.277 GB, free: 2.039 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.935e-05/0.9182, allocations: 115.7 kB / 1.277 GB, free: 1.926 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.235e-05/0.9182, allocations: 4.812 kB / 1.277 GB, free: 1.922 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.068e-05/0.9183, allocations: 5.719 kB / 1.277 GB, free: 1.918 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.617e-05/0.9183, allocations: 3.891 kB / 1.277 GB, free: 1.918 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.9183, allocations: 1.75 kB / 1.277 GB, free: 1.918 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004187/0.9187, allocations: 417 kB / 1.278 GB, free: 1.734 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.9187, allocations: 4.969 kB / 1.278 GB, free: 1.73 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002705/0.919, allocations: 25.41 kB / 1.278 GB, free: 1.727 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.001456/0.9204, allocations: 0.9667 MB / 1.279 GB, free: 0.9609 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001451/0.9206, allocations: 36.91 kB / 1.279 GB, free: 0.9492 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.9206, allocations: 0 / 1.279 GB, free: 0.9492 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 5.009e-05/0.9206, allocations: 16.38 kB / 1.279 GB, free: 0.9453 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004446/0.9211, allocations: 51.95 kB / 1.279 GB, free: 0.9258 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003283/0.9244, allocations: 2.903 MB / 1.281 GB, free: 15.18 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004234/0.9248, allocations: 0.7824 MB / 1.282 GB, free: 14.47 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001318/0.9249, allocations: 53.05 kB / 1.282 GB, free: 14.45 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.9251, allocations: 92.66 kB / 1.282 GB, free: 14.39 MB / 1.014 GB Notification: Performance of SimCode: time 7.01e-07/0.9251, allocations: 0 / 1.282 GB, free: 14.39 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02918/0.9542, allocations: 5.473 MB / 1.288 GB, free: 13.56 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.569/9.523, allocations: 10.52 kB / 1.288 GB, free: 13.55 MB / 1.014 GB " [Timeout remaining time 290] (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_2/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: 15.644323453307152]