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.002041/0.002041, allocations: 104.2 kB / 16.45 MB, free: 6.449 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.002628/0.002628, allocations: 210.4 kB / 19.43 MB, free: 3.637 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 / 252.8 MB, free: 9.105 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.728/2.728, allocations: 476.7 MB / 0.7672 GB, free: 5.172 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.002071/0.002071, allocations: 71.89 kB / 1.112 GB, free: 1.484 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8315/0.8336, allocations: 169.9 MB / 1.278 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003372/0.837, allocations: 1.834 MB / 1.28 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001922/0.8389, allocations: 1.134 MB / 1.281 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.839, allocations: 7.938 kB / 1.281 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005201/0.8395, allocations: 193.2 kB / 1.281 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000524/0.84, allocations: 208.5 kB / 1.282 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005377/0.8406, allocations: 218.7 kB / 1.282 GB, free: 9.77 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003627/0.8409, allocations: 275.3 kB / 1.282 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.8411, allocations: 42.11 kB / 1.282 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002066/0.8413, allocations: 107.6 kB / 1.282 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002235/0.8415, allocations: 175.4 kB / 1.282 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.875e-05/0.8416, allocations: 20 kB / 1.282 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.8417, allocations: 56 kB / 1.282 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.8418, allocations: 95.66 kB / 1.282 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.8419, allocations: 123.2 kB / 1.283 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004337/0.8423, allocations: 374.4 kB / 1.283 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.8423, allocations: 0 / 1.283 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.162e-06/0.8423, allocations: 0 / 1.283 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.237e-06/0.8424, allocations: 0 / 1.283 GB, free: 8.523 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.0008696/0.8432, allocations: 0.6416 MB / 1.284 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.8433, allocations: 8.031 kB / 1.284 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.129e-05/0.8433, allocations: 42.75 kB / 1.284 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001729/0.8435, allocations: 48.69 kB / 1.284 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006295/0.8441, allocations: 426.6 kB / 1.284 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.777e-06/0.8441, allocations: 384 / 1.284 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.677e-05/0.8441, allocations: 7.938 kB / 1.284 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000175/0.8443, allocations: 81.59 kB / 1.284 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.8443, allocations: 0 / 1.284 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.287e-06/0.8443, allocations: 0 / 1.284 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.8443, allocations: 3.938 kB / 1.284 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001426/0.8445, allocations: 55.97 kB / 1.284 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006459/0.8451, allocations: 480.5 kB / 1.285 GB, free: 6.598 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001334/0.8453, allocations: 46.56 kB / 1.285 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.843e-05/0.8453, allocations: 21.02 kB / 1.285 GB, free: 6.52 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.8453, allocations: 3.938 kB / 1.285 GB, free: 6.516 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.8454, allocations: 38.5 kB / 1.285 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.8454, allocations: 0 / 1.285 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0003107/0.8457, allocations: 109.5 kB / 1.285 GB, free: 6.355 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.967e-05/0.8457, allocations: 55.39 kB / 1.285 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007019/0.8464, allocations: 0.5718 MB / 1.286 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.8464, allocations: 25.7 kB / 1.286 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.8466, allocations: 180 kB / 1.286 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.131e-05/0.8466, allocations: 11.89 kB / 1.286 GB, free: 5.484 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.401e-05/0.8466, allocations: 17.72 kB / 1.286 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001623/0.8468, allocations: 346.8 kB / 1.286 GB, free: 5.113 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.404e-05/0.8469, allocations: 15.98 kB / 1.286 GB, free: 5.098 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.19e-05/0.8469, allocations: 12.03 kB / 1.286 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001015/0.847, allocations: 40.77 kB / 1.286 GB, free: 5.043 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.847, allocations: 0 / 1.286 GB, free: 5.043 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001819/0.8472, allocations: 97.44 kB / 1.286 GB, free: 4.941 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.8472, allocations: 4 kB / 1.286 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.8472, allocations: 0 / 1.286 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.8472, allocations: 3.938 kB / 1.286 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.016e-05/0.8473, allocations: 8 kB / 1.286 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.8473, allocations: 0 / 1.286 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.243e-05/0.8473, allocations: 0 / 1.286 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.8474, allocations: 7.984 kB / 1.286 GB, free: 4.918 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.0001671/0.8475, allocations: 185.8 kB / 1.286 GB, free: 4.727 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.013e-05/0.8476, allocations: 31.77 kB / 1.286 GB, free: 4.695 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002255/0.8478, allocations: 108.2 kB / 1.287 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.8478, allocations: 0 / 1.287 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.8478, allocations: 0 / 1.287 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.8478, allocations: 0 / 1.287 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003285/0.8481, allocations: 297.5 kB / 1.287 GB, free: 4.242 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.8481, allocations: 4 kB / 1.287 GB, free: 4.238 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.909e-05/0.8482, allocations: 4 kB / 1.287 GB, free: 4.234 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.8482, allocations: 0 / 1.287 GB, free: 4.234 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.8482, allocations: 11.92 kB / 1.287 GB, free: 4.223 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.8482, allocations: 0 / 1.287 GB, free: 4.223 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.8482, allocations: 8 kB / 1.287 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002293/0.8484, allocations: 191.2 kB / 1.287 GB, free: 4.012 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.8486, allocations: 120.9 kB / 1.287 GB, free: 3.875 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.271e-05/0.8486, allocations: 7.922 kB / 1.287 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.146e-05/0.8487, allocations: 0 / 1.287 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.008e-05/0.8487, allocations: 8 kB / 1.287 GB, free: 3.859 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-06/0.8487, allocations: 0 / 1.287 GB, free: 3.859 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004929/0.8492, allocations: 435.1 kB / 1.288 GB, free: 3.438 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.8492, allocations: 0 / 1.288 GB, free: 3.438 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002682/0.8495, allocations: 27.94 kB / 1.288 GB, free: 3.41 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.001728/0.8512, allocations: 0.9772 MB / 1.289 GB, free: 2.543 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001533/0.8514, allocations: 31.91 kB / 1.289 GB, free: 2.512 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.8514, allocations: 8 kB / 1.289 GB, free: 2.504 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.636e-05/0.8514, allocations: 15.98 kB / 1.289 GB, free: 2.488 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004073/0.8518, allocations: 37.55 kB / 1.289 GB, free: 2.453 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003628/0.8554, allocations: 2.968 MB / 1.292 GB, free: 15.39 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000428/0.8559, allocations: 0.7909 MB / 1.292 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001303/0.856, allocations: 47.27 kB / 1.292 GB, free: 14.53 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.8562, allocations: 95.39 kB / 1.292 GB, free: 14.44 MB / 0.9981 GB Notification: Performance of SimCode: time 4.01e-07/0.8562, allocations: 0 / 1.292 GB, free: 14.44 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03192/0.8881, allocations: 5.719 MB / 1.298 GB, free: 8.859 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.324/9.212, allocations: 12.5 kB / 1.298 GB, free: 8.852 MB / 0.9981 GB " [Timeout remaining time 291] (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: 15.44477624911815]