Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Max,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Max",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Max,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Max",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006969/0.006969, allocations: 101.1 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00151/0.00151, allocations: 186.8 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.348/2.348, allocations: 390.3 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002018/0.002018, allocations: 66.41 kB / 0.9505 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3408, allocations: 140.4 MB / 1.088 GB, free: 1.945 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Max): time 0.001904/0.3428, allocations: 0.708 MB / 1.088 GB, free: 1.238 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008355/0.3436, allocations: 0.8044 MB / 1.089 GB, free: 432 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.745e-05/0.3437, allocations: 0 / 1.089 GB, free: 432 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.131e-05/0.3437, allocations: 3.938 kB / 1.089 GB, free: 428 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.819e-05/0.3438, allocations: 3.938 kB / 1.089 GB, free: 424 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001109/0.3439, allocations: 19.97 kB / 1.089 GB, free: 404 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 9.13e-05/0.344, allocations: 43.8 kB / 1.089 GB, free: 360 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.456e-05/0.3441, allocations: 15.98 kB / 1.089 GB, free: 344 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 6.222e-05/0.3442, allocations: 12 kB / 1.089 GB, free: 332 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.008e-05/0.3443, allocations: 31.83 kB / 1.089 GB, free: 300 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.729e-05/0.3443, allocations: 4 kB / 1.089 GB, free: 296 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.048e-05/0.3443, allocations: 4 kB / 1.089 GB, free: 292 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.589e-05/0.3443, allocations: 4 kB / 1.089 GB, free: 288 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.828e-05/0.3444, allocations: 15.92 kB / 1.089 GB, free: 272 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 9.681e-05/0.3445, allocations: 39.81 kB / 1.089 GB, free: 232 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.3445, allocations: 0 / 1.089 GB, free: 232 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.172e-06/0.3445, allocations: 4 kB / 1.089 GB, free: 228 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.3445, allocations: 0 / 1.089 GB, free: 228 kB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005063/0.345, allocations: 358.3 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.345, allocations: 12.03 kB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.447e-05/0.3451, allocations: 34.73 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.355e-05/0.3451, allocations: 8.781 kB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.3452, allocations: 169.2 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.3452, allocations: 4.375 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.664e-05/0.3453, allocations: 12.38 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002384/0.3455, allocations: 62.22 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.3455, allocations: 7.922 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.3455, allocations: 4 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-06/0.3455, allocations: 3.984 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002877/0.3458, allocations: 63.94 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000362/0.3462, allocations: 276.7 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000211/0.3464, allocations: 54.53 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001609/0.3466, allocations: 44.86 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.3466, allocations: 0 / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/0.3467, allocations: 34.55 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 8.62e-07/0.3467, allocations: 0 / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005317/0.3472, allocations: 133.5 kB / 1.09 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.3472, allocations: 51.41 kB / 1.09 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.991e-05/0.3473, allocations: 109.8 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.309e-05/0.3474, allocations: 25.7 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.63e-05/0.3474, allocations: 92.12 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.913e-05/0.3474, allocations: 7.812 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.31e-05/0.3475, allocations: 13.72 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.3476, allocations: 318.8 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.3477, allocations: 35.95 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.3479, allocations: 31.97 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002735/0.3481, allocations: 72.72 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3482, allocations: 0 / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003098/0.3485, allocations: 101.6 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.3485, allocations: 4 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.3485, allocations: 0 / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.3485, allocations: 0 / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.3486, allocations: 19.97 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.3487, allocations: 0 / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.634e-05/0.3487, allocations: 15.98 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.3488, allocations: 0 / 1.091 GB, free: 13.85 MB / 0.8575 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 7.814e-05/0.3488, allocations: 117.7 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.536e-05/0.3489, allocations: 7.906 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003504/0.3492, allocations: 109.5 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.3492, allocations: 4 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3492, allocations: 3.984 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3492, allocations: 0 / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001646/0.3494, allocations: 165.6 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3494, allocations: 0 / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.487e-05/0.3495, allocations: 19.98 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.3495, allocations: 0 / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.3495, allocations: 0 / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3495, allocations: 0 / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.3496, allocations: 7.984 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003623/0.3499, allocations: 199.7 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 9.532e-05/0.35, allocations: 85.02 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.362e-05/0.35, allocations: 0 / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.3502, allocations: 15.98 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.728e-05/0.3502, allocations: 7.984 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-06/0.3502, allocations: 3.938 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.757e-05/0.3503, allocations: 91.27 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3503, allocations: 0 / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002261/0.3505, allocations: 4 kB / 1.092 GB, free: 12.92 MB / 0.8575 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.0006521/0.3512, allocations: 0.728 MB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003379/0.3515, allocations: 75.78 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3515, allocations: 0 / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001456/0.3517, allocations: 39.97 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.352, allocations: 5.719 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004189/0.3524, allocations: 167.2 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002405/0.3527, allocations: 0.6807 MB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.923e-05/0.3527, allocations: 4 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.534e-05/0.3527, allocations: 15.42 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.3527, allocations: 0 / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01878/0.3715, allocations: 1.639 MB / 1.095 GB, free: 9.578 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.551/7.922, allocations: 7.812 kB / 1.095 GB, free: 9.574 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Max.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Max.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches