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.001671/0.001671, allocations: 103.3 kB / 16.45 MB, free: 6.5 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.001931/0.001931, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.476/1.476, allocations: 230.6 MB / 252.8 MB, free: 8.988 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.146/3.146, allocations: 0.49 GB / 0.7916 GB, free: 33.2 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.002026/0.002026, allocations: 78.05 kB / 1.149 GB, free: 26.34 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3273, allocations: 176.1 MB / 1.321 GB, free: 3.344 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003655/0.331, allocations: 1.828 MB / 1.323 GB, free: 1.504 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002131/0.3331, allocations: 1.142 MB / 1.324 GB, free: 364 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.3332, allocations: 3.938 kB / 1.324 GB, free: 360 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0005818/0.3338, allocations: 186.8 kB / 1.324 GB, free: 176 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0005719/0.3344, allocations: 207.3 kB / 1.324 GB, free: 15.97 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000553/0.335, allocations: 220.5 kB / 1.324 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003923/0.3353, allocations: 263.4 kB / 1.325 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/0.3355, allocations: 48.5 kB / 1.325 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002696/0.3358, allocations: 111.6 kB / 1.325 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002604/0.336, allocations: 175.4 kB / 1.325 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.551e-05/0.3361, allocations: 20 kB / 1.325 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001372/0.3362, allocations: 55.98 kB / 1.325 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.3363, allocations: 83.75 kB / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.3364, allocations: 131.1 kB / 1.325 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004877/0.3369, allocations: 378.4 kB / 1.325 GB, free: 14.51 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.3369, allocations: 4 kB / 1.325 GB, free: 14.51 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.062e-06/0.3369, allocations: 0 / 1.325 GB, free: 14.51 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.523e-05/0.337, allocations: 0 / 1.325 GB, free: 14.51 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.001032/0.338, allocations: 0.6378 MB / 1.326 GB, free: 13.82 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.338, allocations: 11.98 kB / 1.326 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.464e-05/0.3381, allocations: 38.69 kB / 1.326 GB, free: 13.76 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000204/0.3383, allocations: 52.69 kB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006604/0.3389, allocations: 430.6 kB / 1.327 GB, free: 13.25 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.339, allocations: 4.375 kB / 1.327 GB, free: 13.25 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.838e-05/0.339, allocations: 7.938 kB / 1.327 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001793/0.3391, allocations: 73.67 kB / 1.327 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.3392, allocations: 0 / 1.327 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.3392, allocations: 0 / 1.327 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.3392, allocations: 0 / 1.327 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001364/0.3393, allocations: 51.91 kB / 1.327 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006634/0.34, allocations: 496.4 kB / 1.327 GB, free: 12.58 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001393/0.3401, allocations: 50.56 kB / 1.327 GB, free: 12.52 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.33e-05/0.3402, allocations: 16.86 kB / 1.327 GB, free: 12.5 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.683e-05/0.3402, allocations: 3.984 kB / 1.327 GB, free: 12.5 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.3402, allocations: 30.56 kB / 1.327 GB, free: 12.46 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.193e-06/0.3402, allocations: 4 kB / 1.327 GB, free: 12.45 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0003295/0.3406, allocations: 113.3 kB / 1.327 GB, free: 12.34 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.3406, allocations: 51.41 kB / 1.327 GB, free: 12.27 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007235/0.3413, allocations: 0.5719 MB / 1.328 GB, free: 11.69 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.3413, allocations: 25.7 kB / 1.328 GB, free: 11.66 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.3415, allocations: 184 kB / 1.328 GB, free: 11.48 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.366e-05/0.3415, allocations: 7.906 kB / 1.328 GB, free: 11.47 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.991e-05/0.3416, allocations: 13.72 kB / 1.328 GB, free: 11.45 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001683/0.3417, allocations: 354.8 kB / 1.329 GB, free: 11.09 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.352e-05/0.3418, allocations: 8 kB / 1.329 GB, free: 11.09 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.379e-05/0.3418, allocations: 11.98 kB / 1.329 GB, free: 11.07 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.835e-05/0.3419, allocations: 32.84 kB / 1.329 GB, free: 11.04 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3419, allocations: 4 kB / 1.329 GB, free: 11.04 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001948/0.3421, allocations: 93.42 kB / 1.329 GB, free: 10.94 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.3421, allocations: 4 kB / 1.329 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.3421, allocations: 4 kB / 1.329 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.3422, allocations: 3.938 kB / 1.329 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.426e-05/0.3422, allocations: 11.98 kB / 1.329 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.3422, allocations: 0 / 1.329 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.813e-05/0.3423, allocations: 0 / 1.329 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.3423, allocations: 8.266 kB / 1.329 GB, free: 10.91 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.0001721/0.3425, allocations: 181.8 kB / 1.329 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.813e-05/0.3426, allocations: 35.77 kB / 1.329 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002384/0.3428, allocations: 108.2 kB / 1.329 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.3428, allocations: 3.938 kB / 1.329 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3428, allocations: 0 / 1.329 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.3428, allocations: 0 / 1.329 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003312/0.3431, allocations: 301.6 kB / 1.329 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3431, allocations: 3.938 kB / 1.329 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.84e-05/0.3432, allocations: 8 kB / 1.329 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.3432, allocations: 0 / 1.329 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.3432, allocations: 3.938 kB / 1.329 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.3432, allocations: 4 kB / 1.329 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3432, allocations: 4 kB / 1.329 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000235/0.3434, allocations: 187.3 kB / 1.33 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.3436, allocations: 120.8 kB / 1.33 GB, free: 9.863 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.425e-05/0.3436, allocations: 7.938 kB / 1.33 GB, free: 9.855 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.333e-05/0.3437, allocations: 0 / 1.33 GB, free: 9.855 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.312e-05/0.3437, allocations: 3.984 kB / 1.33 GB, free: 9.852 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.3437, allocations: 4 kB / 1.33 GB, free: 9.848 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0005234/0.3443, allocations: 443 kB / 1.33 GB, free: 9.414 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3443, allocations: 0 / 1.33 GB, free: 9.414 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002761/0.3445, allocations: 27.95 kB / 1.33 GB, free: 9.387 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.001836/0.3464, allocations: 0.9633 MB / 1.331 GB, free: 8.531 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001647/0.3465, allocations: 31.91 kB / 1.331 GB, free: 8.5 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3465, allocations: 0 / 1.331 GB, free: 8.5 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.454e-05/0.3466, allocations: 19.94 kB / 1.331 GB, free: 8.48 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004318/0.347, allocations: 57.22 kB / 1.331 GB, free: 8.43 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003885/0.3509, allocations: 2.969 MB / 1.334 GB, free: 5.383 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004458/0.3514, allocations: 0.7947 MB / 1.335 GB, free: 4.562 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001302/0.3515, allocations: 51.25 kB / 1.335 GB, free: 4.512 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/0.3516, allocations: 95.39 kB / 1.335 GB, free: 4.418 MB / 1.029 GB Notification: Performance of SimCode: time 6.02e-07/0.3516, allocations: 0 / 1.335 GB, free: 4.418 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03212/0.3838, allocations: 5.694 MB / 1.341 GB, free: 14.85 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.538/8.922, allocations: 17.91 kB / 1.341 GB, free: 14.84 MB / 1.045 GB " [Timeout remaining time 291] (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: 15.50374488090165]