Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.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.Sort,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Sort",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Sort",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.001346/0.001346, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001723/0.001724, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.427/1.427, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.332/2.332, allocations: 390.3 MB / 0.6647 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 67.91 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7001/0.7014, allocations: 140.4 MB / 0.9497 GB, free: 9.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.002007/0.7035, allocations: 0.8255 MB / 0.9505 GB, free: 8.438 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001128/0.7046, allocations: 1.01 MB / 0.9515 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.439e-05/0.7047, allocations: 1.719 kB / 0.9515 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.7048, allocations: 13.64 kB / 0.9515 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.918e-05/0.7049, allocations: 21.25 kB / 0.9516 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003816/0.7053, allocations: 93.34 kB / 0.9517 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001244/0.7054, allocations: 117.2 kB / 0.9518 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.7056, allocations: 48.14 kB / 0.9518 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.26e-05/0.7057, allocations: 54.19 kB / 0.9519 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.011e-05/0.7057, allocations: 61.86 kB / 0.9519 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/0.7058, allocations: 10.91 kB / 0.9519 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.7059, allocations: 62.14 kB / 0.952 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.735e-05/0.706, allocations: 33.53 kB / 0.952 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.449e-05/0.7061, allocations: 59.23 kB / 0.9521 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002283/0.7063, allocations: 188.9 kB / 0.9523 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.7063, allocations: 1.062 kB / 0.9523 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.393e-06/0.7063, allocations: 0 / 0.9523 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.691e-06/0.7063, allocations: 0 / 0.9523 GB, free: 7.105 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007388/0.7071, allocations: 479.5 kB / 0.9527 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.7071, allocations: 8.781 kB / 0.9527 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.392e-05/0.7072, allocations: 47.14 kB / 0.9528 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.572e-05/0.7072, allocations: 15.28 kB / 0.9528 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/0.7074, allocations: 203.2 kB / 0.953 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.7074, allocations: 7.531 kB / 0.953 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.776e-05/0.7074, allocations: 4.969 kB / 0.953 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005038/0.7079, allocations: 185.3 kB / 0.9532 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.7079, allocations: 5.469 kB / 0.9532 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.708, allocations: 4 kB / 0.9532 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.6e-05/0.708, allocations: 17.33 kB / 0.9532 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007332/0.7087, allocations: 199.3 kB / 0.9534 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008143/0.7096, allocations: 457.4 kB / 0.9538 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004018/0.71, allocations: 145.8 kB / 0.954 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004206/0.7104, allocations: 128.9 kB / 0.9541 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.7104, allocations: 1.219 kB / 0.9541 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.388e-05/0.7105, allocations: 39.97 kB / 0.9541 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.452e-06/0.7105, allocations: 0 / 0.9541 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.001241/0.7117, allocations: 401.2 kB / 0.9545 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.539e-05/0.7117, allocations: 52.69 kB / 0.9546 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.7119, allocations: 151.1 kB / 0.9547 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.7119, allocations: 25.7 kB / 0.9547 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.538e-05/0.7119, allocations: 110.2 kB / 0.9548 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.797e-05/0.712, allocations: 53.02 kB / 0.9549 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.387e-05/0.712, allocations: 28.78 kB / 0.9549 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.84e-05/0.7121, allocations: 321.8 kB / 0.9552 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003902/0.7125, allocations: 118.7 kB / 0.9553 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003451/0.7129, allocations: 112.9 kB / 0.9554 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007321/0.7136, allocations: 240.4 kB / 0.9557 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.7136, allocations: 1.125 kB / 0.9557 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008053/0.7144, allocations: 271.5 kB / 0.9559 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.7144, allocations: 6.656 kB / 0.9559 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.7145, allocations: 1.219 kB / 0.9559 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.7145, allocations: 0 / 0.9559 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000251/0.7147, allocations: 42.83 kB / 0.956 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.7148, allocations: 3.938 kB / 0.956 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.7149, allocations: 45.98 kB / 0.956 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/0.715, allocations: 1.438 kB / 0.956 GB, free: 4.266 MB / 0.7169 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 (7): * Single equations (assignments): 5 * Array equations: 2 * 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 8.172e-05/0.7151, allocations: 129.7 kB / 0.9561 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.338e-05/0.7151, allocations: 7.625 kB / 0.9562 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.775e-05/0.7151, allocations: 12.59 kB / 0.9562 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.387e-05/0.7152, allocations: 11.61 kB / 0.9562 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.7152, allocations: 3.938 kB / 0.9562 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.7152, allocations: 4 kB / 0.9562 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002289/0.7154, allocations: 229.6 kB / 0.9564 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.7154, allocations: 0 / 0.9564 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002081/0.7156, allocations: 34.7 kB / 0.9564 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.7156, allocations: 0 / 0.9564 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.7157, allocations: 5.594 kB / 0.9564 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.7157, allocations: 3.938 kB / 0.9564 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.7157, allocations: 5.281 kB / 0.9565 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008158/0.7165, allocations: 379.1 kB / 0.9568 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.98e-05/0.7165, allocations: 96.86 kB / 0.9569 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.161e-05/0.7166, allocations: 1.344 kB / 0.9569 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002204/0.7168, allocations: 27.7 kB / 0.9569 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.075e-05/0.7169, allocations: 16.05 kB / 0.9569 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.7169, allocations: 6.75 kB / 0.957 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.92e-05/0.717, allocations: 109.7 kB / 0.9571 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.717, allocations: 1.375 kB / 0.9571 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003042/0.7173, allocations: 36.94 kB / 0.9571 GB, free: 3.375 MB / 0.7169 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 (7): * Single equations (assignments): 5 * Array equations: 2 * 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.001226/0.7185, allocations: 0.9414 MB / 0.958 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0008995/0.7194, allocations: 257.6 kB / 0.9583 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.7194, allocations: 0 / 0.9583 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004351/0.7199, allocations: 133 kB / 0.9584 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004368/0.7203, allocations: 31.94 kB / 0.9584 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003322/0.7237, allocations: 2.159 MB / 0.9605 GB, free: 0.7656 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001637/0.7238, allocations: 0.7267 MB / 0.9612 GB, free: 44 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.000112/0.724, allocations: 16.94 kB / 0.9613 GB, free: 36 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.154e-05/0.7241, allocations: 35.98 kB / 0.9613 GB, free: 4 kB / 0.7169 GB Notification: Performance of SimCode: time 4.61e-07/0.7241, allocations: 1.188 kB / 0.9613 GB, free: 4 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02401/0.7481, allocations: 3.519 MB / 0.9647 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.897/8.645, allocations: 3.703 kB / 0.9647 GB, free: 14.2 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort_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_Sort.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Sort.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches