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.00187/0.00187, allocations: 103.6 kB / 18.95 MB, free: 2.547 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.001583/0.001583, allocations: 220.4 kB / 22.25 MB, free: 4.863 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.469/1.469, allocations: 230.6 MB / 256 MB, free: 7.797 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.229/3.229, allocations: 0.4892 GB / 0.7943 GB, free: 35.45 MB / 0.6231 GB " [Timeout remaining time 176] 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.002083/0.002083, allocations: 62.09 kB / 1.153 GB, free: 25.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3324/0.3345, allocations: 176.1 MB / 1.325 GB, free: 2.371 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003596/0.3381, allocations: 1.801 MB / 1.327 GB, free: 0.5664 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002119/0.3402, allocations: 1.087 MB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001253/0.3403, allocations: 3.938 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005553/0.3409, allocations: 191.8 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005495/0.3414, allocations: 215.2 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005393/0.3419, allocations: 227.4 kB / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003841/0.3423, allocations: 271.3 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.3425, allocations: 40.73 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002466/0.3427, allocations: 107.6 kB / 1.329 GB, free: 14.44 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000242/0.343, allocations: 171.5 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.196e-05/0.343, allocations: 23.94 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001337/0.3431, allocations: 59.97 kB / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.3433, allocations: 91.73 kB / 1.329 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.3434, allocations: 83.34 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004966/0.3439, allocations: 386.4 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3439, allocations: 0 / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3439, allocations: 0 / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.366e-06/0.3439, allocations: 0 / 1.33 GB, free: 13.64 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.0009267/0.3448, allocations: 0.552 MB / 1.33 GB, free: 13.06 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.3448, allocations: 16.03 kB / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.678e-05/0.3449, allocations: 34.75 kB / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001881/0.3451, allocations: 44.69 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006703/0.3458, allocations: 372.6 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.3458, allocations: 4.312 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.796e-05/0.3458, allocations: 11.94 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001728/0.346, allocations: 73.66 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.346, allocations: 0 / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.346, allocations: 4 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.346, allocations: 4 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000129/0.3461, allocations: 51.91 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006883/0.3468, allocations: 423.7 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001414/0.3469, allocations: 54.55 kB / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.495e-05/0.347, allocations: 16.86 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.347, allocations: 3.938 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.964e-05/0.347, allocations: 34.55 kB / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.223e-06/0.3471, allocations: 0 / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.000305/0.3474, allocations: 113.4 kB / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.228e-05/0.3474, allocations: 51.41 kB / 1.331 GB, free: 11.65 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000745/0.3482, allocations: 0.5757 MB / 1.332 GB, free: 11.06 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.3482, allocations: 25.7 kB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001498/0.3483, allocations: 180 kB / 1.332 GB, free: 10.85 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.454e-05/0.3483, allocations: 15.89 kB / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.3484, allocations: 13.83 kB / 1.332 GB, free: 10.82 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001698/0.3485, allocations: 350.7 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.068e-05/0.3486, allocations: 12 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.029e-05/0.3486, allocations: 11.98 kB / 1.333 GB, free: 10.44 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.009e-05/0.3487, allocations: 36.84 kB / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/0.3487, allocations: 0 / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001827/0.3489, allocations: 89.48 kB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.3489, allocations: 8 kB / 1.333 GB, free: 10.3 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.3489, allocations: 336 / 1.333 GB, free: 10.3 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.3489, allocations: 7.875 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.179e-05/0.349, allocations: 7.984 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.349, allocations: 0 / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.626e-05/0.3491, allocations: 4 kB / 1.333 GB, free: 10.28 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.3491, allocations: 4 kB / 1.333 GB, free: 10.28 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.0001633/0.3493, allocations: 181.8 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.475e-05/0.3493, allocations: 35.75 kB / 1.333 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002209/0.3495, allocations: 112.3 kB / 1.333 GB, free: 9.938 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.3495, allocations: 4 kB / 1.333 GB, free: 9.934 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-06/0.3496, allocations: 0 / 1.333 GB, free: 9.934 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-06/0.3496, allocations: 0 / 1.333 GB, free: 9.934 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000282/0.3498, allocations: 236.6 kB / 1.333 GB, free: 9.66 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3498, allocations: 0 / 1.333 GB, free: 9.66 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.398e-05/0.3499, allocations: 15.94 kB / 1.333 GB, free: 9.645 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.3499, allocations: 0 / 1.333 GB, free: 9.645 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.3499, allocations: 11.92 kB / 1.333 GB, free: 9.633 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3499, allocations: 0 / 1.333 GB, free: 9.633 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3499, allocations: 0 / 1.333 GB, free: 9.633 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002278/0.3501, allocations: 187.3 kB / 1.334 GB, free: 9.434 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.157e-05/0.3502, allocations: 35.81 kB / 1.334 GB, free: 9.398 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/0.3503, allocations: 11.92 kB / 1.334 GB, free: 9.387 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.324e-05/0.3503, allocations: 0 / 1.334 GB, free: 9.387 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.134e-05/0.3504, allocations: 4 kB / 1.334 GB, free: 9.383 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.3504, allocations: 0 / 1.334 GB, free: 9.383 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004968/0.3509, allocations: 439 kB / 1.334 GB, free: 8.957 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3509, allocations: 0 / 1.334 GB, free: 8.957 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002695/0.3511, allocations: 28 kB / 1.334 GB, free: 8.93 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.001849/0.353, allocations: 0.9964 MB / 1.335 GB, free: 8.062 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001481/0.3531, allocations: 35.91 kB / 1.335 GB, free: 8.027 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3531, allocations: 0 / 1.335 GB, free: 8.027 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.652e-05/0.3532, allocations: 24.02 kB / 1.335 GB, free: 8.004 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000413/0.3536, allocations: 46.7 kB / 1.335 GB, free: 7.961 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003954/0.3576, allocations: 2.953 MB / 1.338 GB, free: 4.926 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002233/0.3578, allocations: 182.1 kB / 1.338 GB, free: 4.73 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001423/0.3579, allocations: 55.25 kB / 1.338 GB, free: 4.676 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001819/0.3581, allocations: 99.41 kB / 1.338 GB, free: 4.578 MB / 1.029 GB Notification: Performance of SimCode: time 7.01e-07/0.3581, allocations: 0 / 1.338 GB, free: 4.578 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03467/0.3928, allocations: 6.343 MB / 1.344 GB, free: 14.31 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.86, allocations: 4 kB / 1.344 GB, free: 14.3 MB / 1.045 GB " [Timeout remaining time 288] (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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv --start-time 0 --stop-time 86400 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 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.csv","/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] "Error: Could not read variable linPieTwo.u in file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv. Warning: Get data of variable linPieTwo.u from file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.711717412807047]