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.001158/0.001158, allocations: 109 kB / 17.54 MB, free: 4.746 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.001144/0.001144, allocations: 185.9 kB / 20.71 MB, free: 1.586 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.277/1.277, allocations: 225.6 MB / 249.3 MB, free: 3.164 MB / 190.1 MB " [Timeout remaining time 179] 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.498/2.498, allocations: 476.7 MB / 0.7628 GB, free: 15.11 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.001835/0.001835, allocations: 67.89 kB / 1.107 GB, free: 5.129 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7185/0.7204, allocations: 168.7 MB / 1.271 GB, free: 7.672 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002531/0.7229, allocations: 1.811 MB / 1.273 GB, free: 6.445 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001104/0.724, allocations: 0.927 MB / 1.274 GB, free: 5.82 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.055e-05/0.7241, allocations: 5.531 kB / 1.274 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004302/0.7245, allocations: 195.3 kB / 1.274 GB, free: 5.734 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003077/0.7248, allocations: 163.2 kB / 1.274 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003486/0.7252, allocations: 210.2 kB / 1.275 GB, free: 5.555 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002385/0.7254, allocations: 239.8 kB / 1.275 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.7255, allocations: 41.45 kB / 1.275 GB, free: 5.43 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.7256, allocations: 100.9 kB / 1.275 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001887/0.7258, allocations: 172.5 kB / 1.275 GB, free: 5.332 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.126e-05/0.7259, allocations: 19.06 kB / 1.275 GB, free: 5.332 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.332e-05/0.726, allocations: 43.08 kB / 1.275 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 9.053e-05/0.726, allocations: 86.27 kB / 1.275 GB, free: 5.293 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 8.265e-05/0.7261, allocations: 115 kB / 1.275 GB, free: 5.203 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003198/0.7265, allocations: 362 kB / 1.276 GB, free: 5.059 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.7265, allocations: 4.688 kB / 1.276 GB, free: 5.055 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.132e-06/0.7265, allocations: 0 / 1.276 GB, free: 5.055 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.477e-06/0.7265, allocations: 0 / 1.276 GB, free: 5.055 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.0006062/0.7271, allocations: 0.6082 MB / 1.276 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.7271, allocations: 9.094 kB / 1.276 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.642e-05/0.7271, allocations: 37.94 kB / 1.276 GB, free: 4.477 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.305e-05/0.7272, allocations: 35.72 kB / 1.276 GB, free: 4.457 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003996/0.7276, allocations: 415.4 kB / 1.277 GB, free: 4.148 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.7276, allocations: 11.61 kB / 1.277 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.158e-05/0.7276, allocations: 7.188 kB / 1.277 GB, free: 4.137 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001409/0.7277, allocations: 78.86 kB / 1.277 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.7278, allocations: 0.75 kB / 1.277 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.7278, allocations: 0.6562 kB / 1.277 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.7278, allocations: 5.578 kB / 1.277 GB, free: 4.082 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001174/0.7279, allocations: 48.61 kB / 1.277 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004222/0.7283, allocations: 483.4 kB / 1.277 GB, free: 3.707 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001051/0.7284, allocations: 48.55 kB / 1.277 GB, free: 3.672 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.681e-05/0.7285, allocations: 19.73 kB / 1.277 GB, free: 3.66 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/0.7285, allocations: 0.8125 kB / 1.277 GB, free: 3.66 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.355e-05/0.7285, allocations: 32.61 kB / 1.278 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.7285, allocations: 0 / 1.278 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0002431/0.7287, allocations: 109.3 kB / 1.278 GB, free: 3.555 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.947e-05/0.7288, allocations: 52.25 kB / 1.278 GB, free: 3.492 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005369/0.7293, allocations: 0.5527 MB / 1.278 GB, free: 3.25 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.502e-06/0.7293, allocations: 26.67 kB / 1.278 GB, free: 3.219 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.249e-05/0.7294, allocations: 178 kB / 1.278 GB, free: 3.07 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.489e-05/0.7294, allocations: 16.67 kB / 1.278 GB, free: 3.055 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.68e-05/0.7294, allocations: 23.97 kB / 1.278 GB, free: 3.031 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.517e-05/0.7295, allocations: 344.8 kB / 1.279 GB, free: 2.703 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.466e-05/0.7295, allocations: 15.53 kB / 1.279 GB, free: 2.699 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.634e-05/0.7296, allocations: 8.375 kB / 1.279 GB, free: 2.699 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.015e-05/0.7296, allocations: 35.02 kB / 1.279 GB, free: 2.684 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.7296, allocations: 0.8438 kB / 1.279 GB, free: 2.684 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001373/0.7298, allocations: 87.19 kB / 1.279 GB, free: 2.629 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.7298, allocations: 5.656 kB / 1.279 GB, free: 2.629 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.7298, allocations: 1.031 kB / 1.279 GB, free: 2.629 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.7298, allocations: 8.047 kB / 1.279 GB, free: 2.621 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.554e-05/0.7299, allocations: 17.42 kB / 1.279 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.7299, allocations: 0.875 kB / 1.279 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.143e-05/0.7299, allocations: 1.969 kB / 1.279 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.7299, allocations: 0.8125 kB / 1.279 GB, free: 2.613 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.0001106/0.7301, allocations: 181.8 kB / 1.279 GB, free: 2.473 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.935e-05/0.7301, allocations: 28.91 kB / 1.279 GB, free: 2.457 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001786/0.7303, allocations: 107.8 kB / 1.279 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.7303, allocations: 1.094 kB / 1.279 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.227e-06/0.7303, allocations: 0.9375 kB / 1.279 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.7303, allocations: 0 / 1.279 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002058/0.7305, allocations: 283.4 kB / 1.28 GB, free: 2.164 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.7305, allocations: 4 kB / 1.28 GB, free: 2.16 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.578e-05/0.7305, allocations: 11.61 kB / 1.28 GB, free: 2.156 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.7305, allocations: 4.828 kB / 1.28 GB, free: 2.152 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.844e-06/0.7306, allocations: 12.12 kB / 1.28 GB, free: 2.145 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.7306, allocations: 0 / 1.28 GB, free: 2.145 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.7306, allocations: 1 kB / 1.28 GB, free: 2.145 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001503/0.7307, allocations: 182.2 kB / 1.28 GB, free: 1.988 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.833e-05/0.7308, allocations: 113.9 kB / 1.28 GB, free: 1.875 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.755e-05/0.7308, allocations: 8.844 kB / 1.28 GB, free: 1.867 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.018e-05/0.7309, allocations: 2.656 kB / 1.28 GB, free: 1.867 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.679e-05/0.7309, allocations: 2.688 kB / 1.28 GB, free: 1.867 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.666e-06/0.7309, allocations: 1.125 kB / 1.28 GB, free: 1.867 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004191/0.7313, allocations: 422.3 kB / 1.28 GB, free: 1.68 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.7313, allocations: 0.7812 kB / 1.28 GB, free: 1.68 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002469/0.7316, allocations: 25.36 kB / 1.28 GB, free: 1.676 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.00131/0.7329, allocations: 0.9801 MB / 1.281 GB, free: 0.8906 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001386/0.733, allocations: 36.91 kB / 1.281 GB, free: 0.8789 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.733, allocations: 0 / 1.281 GB, free: 0.8789 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 5.067e-05/0.7331, allocations: 16.52 kB / 1.281 GB, free: 0.875 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003622/0.7334, allocations: 47.7 kB / 1.281 GB, free: 0.8555 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002762/0.7362, allocations: 2.88 MB / 1.284 GB, free: 15.13 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/0.7366, allocations: 0.7813 MB / 1.285 GB, free: 14.42 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001007/0.7367, allocations: 55.08 kB / 1.285 GB, free: 14.4 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.7368, allocations: 90.77 kB / 1.285 GB, free: 14.34 MB / 1.014 GB Notification: Performance of SimCode: time 3.71e-07/0.7368, allocations: 0 / 1.285 GB, free: 14.34 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02821/0.765, allocations: 5.443 MB / 1.29 GB, free: 13.47 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.362/8.127, allocations: 4.875 kB / 1.29 GB, free: 13.47 MB / 1.014 GB " [Timeout remaining time 292] (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 --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: 13.408085080998717]