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.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.00132/0.00132, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001493/0.001493, allocations: 216.2 kB / 22.25 MB, free: 5.129 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.511/1.511, allocations: 230.6 MB / 256 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.756/2.756, allocations: 476.8 MB / 0.7707 GB, free: 4.27 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_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: 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.002105/0.002105, allocations: 68.77 kB / 1.117 GB, free: 40.27 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3665/0.3686, allocations: 170 MB / 1.283 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.00341/0.372, allocations: 1.844 MB / 1.285 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001906/0.3739, allocations: 1.15 MB / 1.286 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.852e-05/0.374, allocations: 3.938 kB / 1.286 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005521/0.3745, allocations: 188.1 kB / 1.286 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0005035/0.375, allocations: 224 kB / 1.287 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005138/0.3755, allocations: 217.8 kB / 1.287 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003612/0.3759, allocations: 275.3 kB / 1.287 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.3761, allocations: 36.09 kB / 1.287 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002206/0.3763, allocations: 111.6 kB / 1.287 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002454/0.3765, allocations: 175.4 kB / 1.287 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.837e-05/0.3766, allocations: 20 kB / 1.287 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001181/0.3767, allocations: 55.98 kB / 1.288 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.3768, allocations: 107.6 kB / 1.288 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.3769, allocations: 115.2 kB / 1.288 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004418/0.3773, allocations: 374.4 kB / 1.288 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3774, allocations: 0 / 1.288 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3774, allocations: 0 / 1.288 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.3774, allocations: 0 / 1.288 GB, free: 6.832 MB / 0.9825 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.0008788/0.3782, allocations: 0.5642 MB / 1.289 GB, free: 6.238 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.3783, allocations: 12.03 kB / 1.289 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.912e-05/0.3783, allocations: 30.75 kB / 1.289 GB, free: 6.188 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001752/0.3785, allocations: 48.69 kB / 1.289 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006385/0.3791, allocations: 376.6 kB / 1.289 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.3791, allocations: 4.375 kB / 1.289 GB, free: 5.746 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.787e-05/0.3792, allocations: 7.938 kB / 1.289 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001809/0.3793, allocations: 81.59 kB / 1.289 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.3793, allocations: 0 / 1.289 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.908e-06/0.3794, allocations: 3.938 kB / 1.289 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-06/0.3794, allocations: 0 / 1.289 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001359/0.3795, allocations: 55.97 kB / 1.289 GB, free: 5.594 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006409/0.3801, allocations: 451.6 kB / 1.29 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001292/0.3803, allocations: 46.56 kB / 1.29 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.352e-05/0.3803, allocations: 20.84 kB / 1.29 GB, free: 5.031 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.764e-05/0.3804, allocations: 7.984 kB / 1.29 GB, free: 5.023 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.3804, allocations: 34.56 kB / 1.29 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.452e-06/0.3804, allocations: 0 / 1.29 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0003194/0.3807, allocations: 113.5 kB / 1.29 GB, free: 4.863 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.3807, allocations: 51.41 kB / 1.29 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006967/0.3814, allocations: 0.5719 MB / 1.291 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.3815, allocations: 25.7 kB / 1.291 GB, free: 4.188 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.3816, allocations: 184 kB / 1.291 GB, free: 4.004 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.269e-05/0.3816, allocations: 11.89 kB / 1.291 GB, free: 3.992 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.665e-05/0.3817, allocations: 13.72 kB / 1.291 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001585/0.3818, allocations: 350.8 kB / 1.291 GB, free: 3.621 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.277e-05/0.3819, allocations: 8 kB / 1.291 GB, free: 3.613 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.939e-05/0.3819, allocations: 11.98 kB / 1.291 GB, free: 3.602 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.967e-05/0.382, allocations: 32.84 kB / 1.291 GB, free: 3.566 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.382, allocations: 0 / 1.291 GB, free: 3.566 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000177/0.3822, allocations: 101.4 kB / 1.291 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.3822, allocations: 4 kB / 1.291 GB, free: 3.457 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.3822, allocations: 0 / 1.291 GB, free: 3.457 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/0.3822, allocations: 3.938 kB / 1.291 GB, free: 3.453 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.55e-05/0.3823, allocations: 15.92 kB / 1.291 GB, free: 3.438 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.3823, allocations: 0 / 1.291 GB, free: 3.438 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.266e-05/0.3824, allocations: 7.875 kB / 1.291 GB, free: 3.43 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-06/0.3824, allocations: 112 / 1.291 GB, free: 3.43 MB / 0.9825 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.0001762/0.3826, allocations: 197.7 kB / 1.291 GB, free: 3.227 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.879e-05/0.3826, allocations: 35.77 kB / 1.291 GB, free: 3.191 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002286/0.3829, allocations: 100.4 kB / 1.292 GB, free: 3.082 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.3829, allocations: 0 / 1.292 GB, free: 3.082 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3829, allocations: 0 / 1.292 GB, free: 3.082 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.3829, allocations: 0 / 1.292 GB, free: 3.082 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003198/0.3832, allocations: 268.6 kB / 1.292 GB, free: 2.777 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3832, allocations: 0 / 1.292 GB, free: 2.777 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.733e-05/0.3832, allocations: 8 kB / 1.292 GB, free: 2.77 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.3832, allocations: 7.938 kB / 1.292 GB, free: 2.762 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.437e-06/0.3832, allocations: 7.938 kB / 1.292 GB, free: 2.754 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3832, allocations: 0 / 1.292 GB, free: 2.754 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3832, allocations: 0 / 1.292 GB, free: 2.754 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002232/0.3835, allocations: 187.3 kB / 1.292 GB, free: 2.555 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.904e-05/0.3836, allocations: 43.8 kB / 1.292 GB, free: 2.512 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.332e-05/0.3836, allocations: 3.938 kB / 1.292 GB, free: 2.508 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.744e-05/0.3837, allocations: 0 / 1.292 GB, free: 2.508 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.45e-05/0.3837, allocations: 11.98 kB / 1.292 GB, free: 2.496 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.656e-06/0.3837, allocations: 0 / 1.292 GB, free: 2.496 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0005034/0.3842, allocations: 435.1 kB / 1.292 GB, free: 2.07 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3842, allocations: 0 / 1.292 GB, free: 2.07 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002702/0.3845, allocations: 24 kB / 1.293 GB, free: 2.047 MB / 0.9825 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.001805/0.3863, allocations: 0.9829 MB / 1.293 GB, free: 1.172 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001795/0.3865, allocations: 31.91 kB / 1.294 GB, free: 1.141 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3865, allocations: 0 / 1.294 GB, free: 1.141 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.751e-05/0.3865, allocations: 23.94 kB / 1.294 GB, free: 1.117 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004318/0.387, allocations: 41.47 kB / 1.294 GB, free: 1.078 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003857/0.3908, allocations: 2.945 MB / 1.296 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004326/0.3913, allocations: 0.7986 MB / 1.297 GB, free: 13.23 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001333/0.3914, allocations: 43.27 kB / 1.297 GB, free: 13.18 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.3915, allocations: 99.39 kB / 1.297 GB, free: 13.09 MB / 0.9981 GB Notification: Performance of SimCode: time 9.02e-07/0.3915, allocations: 0 / 1.297 GB, free: 13.09 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03469/0.4262, allocations: 5.808 MB / 1.303 GB, free: 7.367 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.46, allocations: 4.594 kB / 1.303 GB, free: 7.367 MB / 0.9981 GB " [Timeout remaining time 288] (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 & python3 -m fmpy simulate --output-file Buildings_11_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_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.csv","/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] "Error: Could not read variable linPieTwo.u in file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv. Warning: Get data of variable linPieTwo.u from file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.37164346099962]