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.001386/0.001386, allocations: 114.3 kB / 18.94 MB, free: 2.793 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.001596/0.001596, allocations: 219.9 kB / 22.26 MB, free: 5.211 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.438/1.438, allocations: 230.6 MB / 256 MB, free: 8.008 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.165/3.165, allocations: 0.49 GB / 0.7951 GB, free: 33.36 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.00205/0.00205, allocations: 73.39 kB / 1.154 GB, free: 25.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.3387, allocations: 176.1 MB / 1.326 GB, free: 1.973 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.00443/0.3431, allocations: 1.836 MB / 1.328 GB, free: 132 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002323/0.3454, allocations: 1.161 MB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001569/0.3456, allocations: 0 / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005679/0.3462, allocations: 191.2 kB / 1.329 GB, free: 14.78 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005483/0.3467, allocations: 221.5 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.00056/0.3473, allocations: 222.6 kB / 1.329 GB, free: 14.35 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000422/0.3477, allocations: 267.4 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.3479, allocations: 40.73 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002396/0.3481, allocations: 119.5 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002621/0.3484, allocations: 171.5 kB / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.482e-05/0.3484, allocations: 20 kB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001415/0.3485, allocations: 55.97 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001163/0.3487, allocations: 91.75 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001295/0.3488, allocations: 123.1 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004866/0.3493, allocations: 382.4 kB / 1.331 GB, free: 13.1 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3493, allocations: 0 / 1.331 GB, free: 13.1 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3493, allocations: 0 / 1.331 GB, free: 13.1 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.775e-06/0.3493, allocations: 4 kB / 1.331 GB, free: 13.09 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.00087/0.3502, allocations: 0.5585 MB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.3502, allocations: 8.031 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.081e-05/0.3502, allocations: 34.73 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001768/0.3504, allocations: 52.69 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006613/0.3511, allocations: 364.7 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.3511, allocations: 8.375 kB / 1.332 GB, free: 12.01 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.576e-05/0.3511, allocations: 7.938 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001865/0.3513, allocations: 73.61 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.3513, allocations: 3.984 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.3513, allocations: 3.938 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.3513, allocations: 4 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001545/0.3515, allocations: 55.91 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006343/0.3521, allocations: 459.6 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001273/0.3522, allocations: 42.56 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.692e-05/0.3523, allocations: 20.91 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.3523, allocations: 0 / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.958e-05/0.3524, allocations: 34.56 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.3524, allocations: 0 / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0003147/0.3527, allocations: 117.3 kB / 1.332 GB, free: 11.13 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.413e-05/0.3527, allocations: 51.41 kB / 1.332 GB, free: 11.07 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006867/0.3534, allocations: 0.568 MB / 1.333 GB, free: 10.49 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.3534, allocations: 25.7 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.3536, allocations: 184 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.357e-05/0.3536, allocations: 11.91 kB / 1.333 GB, free: 10.26 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.671e-05/0.3536, allocations: 17.7 kB / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001593/0.3538, allocations: 346.8 kB / 1.334 GB, free: 9.891 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.863e-05/0.3538, allocations: 15.98 kB / 1.334 GB, free: 9.875 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.112e-05/0.3539, allocations: 11.98 kB / 1.334 GB, free: 9.863 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.964e-05/0.354, allocations: 32.84 kB / 1.334 GB, free: 9.828 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.354, allocations: 0 / 1.334 GB, free: 9.828 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001772/0.3542, allocations: 97.42 kB / 1.334 GB, free: 9.727 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.3542, allocations: 4 kB / 1.334 GB, free: 9.723 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.3542, allocations: 0 / 1.334 GB, free: 9.723 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.3542, allocations: 3.938 kB / 1.334 GB, free: 9.719 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.505e-05/0.3543, allocations: 8 kB / 1.334 GB, free: 9.711 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.3543, allocations: 3.984 kB / 1.334 GB, free: 9.707 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.195e-05/0.3543, allocations: 4 kB / 1.334 GB, free: 9.703 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-06/0.3543, allocations: 0 / 1.334 GB, free: 9.703 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.3545, allocations: 181.8 kB / 1.334 GB, free: 9.516 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.851e-05/0.3546, allocations: 35.77 kB / 1.334 GB, free: 9.48 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002268/0.3548, allocations: 112.2 kB / 1.334 GB, free: 9.363 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3548, allocations: 112 / 1.334 GB, free: 9.363 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3548, allocations: 3.938 kB / 1.334 GB, free: 9.359 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.3548, allocations: 4 kB / 1.334 GB, free: 9.355 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002924/0.3551, allocations: 264.6 kB / 1.334 GB, free: 9.055 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3551, allocations: 0 / 1.334 GB, free: 9.055 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.913e-05/0.3552, allocations: 11.98 kB / 1.334 GB, free: 9.043 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.3552, allocations: 0 / 1.334 GB, free: 9.043 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.3552, allocations: 12.31 kB / 1.334 GB, free: 9.031 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3552, allocations: 3.938 kB / 1.334 GB, free: 9.027 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3552, allocations: 0 / 1.334 GB, free: 9.027 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002167/0.3554, allocations: 187.3 kB / 1.335 GB, free: 8.828 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.63e-05/0.3555, allocations: 43.8 kB / 1.335 GB, free: 8.785 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.271e-05/0.3555, allocations: 7.875 kB / 1.335 GB, free: 8.777 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.835e-05/0.3556, allocations: 4 kB / 1.335 GB, free: 8.773 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.529e-05/0.3556, allocations: 4 kB / 1.335 GB, free: 8.77 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.551e-06/0.3557, allocations: 3.984 kB / 1.335 GB, free: 8.766 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004879/0.3561, allocations: 435.1 kB / 1.335 GB, free: 8.344 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3561, allocations: 0 / 1.335 GB, free: 8.344 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002644/0.3564, allocations: 23.98 kB / 1.335 GB, free: 8.32 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.001692/0.3581, allocations: 0.9657 MB / 1.336 GB, free: 7.461 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001523/0.3582, allocations: 35.86 kB / 1.336 GB, free: 7.426 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3582, allocations: 0 / 1.336 GB, free: 7.426 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.174e-05/0.3583, allocations: 23.92 kB / 1.336 GB, free: 7.402 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.3587, allocations: 43.97 kB / 1.336 GB, free: 7.363 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003701/0.3624, allocations: 2.96 MB / 1.339 GB, free: 4.32 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004672/0.3629, allocations: 0.7909 MB / 1.34 GB, free: 3.5 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001505/0.363, allocations: 47.44 kB / 1.34 GB, free: 3.457 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001536/0.3632, allocations: 99.39 kB / 1.34 GB, free: 3.359 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.3632, allocations: 0 / 1.34 GB, free: 3.359 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0333/0.3965, allocations: 5.813 MB / 1.346 GB, free: 13.63 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.23, allocations: 5.656 kB / 1.346 GB, free: 13.62 MB / 1.045 GB " [Timeout remaining time 289] (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: 17.96046336099971]