Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,fileNamePrefix="Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_SortWithIndices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,fileNamePrefix="Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_SortWithIndices",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.008345/0.008345, allocations: 98.19 kB / 15.73 MB, free: 5.605 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.00205/0.00205, allocations: 199.7 kB / 16.67 MB, free: 5.531 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.709/2.709, allocations: 469.8 MB / 0.7425 GB, free: 3.352 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 59.91 kB / 1.065 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.723/0.725, allocations: 159.1 MB / 1.22 GB, free: 2.047 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.00212/0.7271, allocations: 0.8352 MB / 1.221 GB, free: 1.215 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001275/0.7284, allocations: 1.014 MB / 1.222 GB, free: 192 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.351e-05/0.7285, allocations: 4 kB / 1.222 GB, free: 188 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 9.963e-05/0.7286, allocations: 11.86 kB / 1.222 GB, free: 176 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.589e-05/0.7287, allocations: 19.8 kB / 1.222 GB, free: 156 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003657/0.7291, allocations: 87.77 kB / 1.222 GB, free: 68 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001845/0.7293, allocations: 127.7 kB / 1.222 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.7294, allocations: 53.08 kB / 1.222 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.63e-05/0.7295, allocations: 51.78 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.708e-05/0.7296, allocations: 63.75 kB / 1.222 GB, free: 15.78 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.533e-05/0.7297, allocations: 8 kB / 1.222 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000164/0.7298, allocations: 91.91 kB / 1.222 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.392e-05/0.7299, allocations: 39.84 kB / 1.222 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.943e-05/0.73, allocations: 63.55 kB / 1.223 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003/0.7303, allocations: 222.8 kB / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.7303, allocations: 0 / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.382e-06/0.7303, allocations: 0 / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.111e-06/0.7303, allocations: 0 / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.0008868/0.7312, allocations: 0.4906 MB / 1.223 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.7312, allocations: 8.031 kB / 1.223 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.469e-05/0.7313, allocations: 54.67 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.017e-05/0.7314, allocations: 16.8 kB / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002099/0.7316, allocations: 212.1 kB / 1.224 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.7316, allocations: 4.375 kB / 1.224 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.896e-05/0.7316, allocations: 8.375 kB / 1.224 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005862/0.7322, allocations: 199.3 kB / 1.224 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.7322, allocations: 11.94 kB / 1.224 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/0.7323, allocations: 0 / 1.224 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.7323, allocations: 0 / 1.224 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007959/0.7331, allocations: 225.7 kB / 1.224 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009728/0.734, allocations: 0.5275 MB / 1.224 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004839/0.7345, allocations: 174.3 kB / 1.225 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004447/0.735, allocations: 156.8 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 5.727e-05/0.7351, allocations: 11.98 kB / 1.225 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.7351, allocations: 30.56 kB / 1.225 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=25): time 1.493e-06/0.7351, allocations: 0 / 1.225 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25): time 0.001452/0.7366, allocations: 476.8 kB / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.384e-05/0.7366, allocations: 55.34 kB / 1.225 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.7368, allocations: 160.6 kB / 1.225 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.7368, allocations: 29.7 kB / 1.226 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.922e-05/0.7369, allocations: 108.6 kB / 1.226 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 7.993e-05/0.737, allocations: 75.44 kB / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.706e-05/0.737, allocations: 33.7 kB / 1.226 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.7372, allocations: 326.8 kB / 1.226 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004341/0.7376, allocations: 132.1 kB / 1.226 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004222/0.7381, allocations: 143.8 kB / 1.226 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008516/0.7389, allocations: 297.9 kB / 1.227 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.7389, allocations: 0 / 1.227 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009204/0.7399, allocations: 327.1 kB / 1.227 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.7399, allocations: 8 kB / 1.227 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.7399, allocations: 0 / 1.227 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.7399, allocations: 3.938 kB / 1.227 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002427/0.7402, allocations: 47.89 kB / 1.227 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.7402, allocations: 0 / 1.227 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.7404, allocations: 35.84 kB / 1.227 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.787e-05/0.7404, allocations: 7.984 kB / 1.227 GB, free: 10.81 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (sorDes.yIdx[5],sorDes.yIdx[4],sorDes.yIdx[3],sorDes.yIdx[2],sorDes.yIdx[1],sorAsc.yIdx[5],sorAsc.yIdx[4],sorAsc.yIdx[3],sorAsc.yIdx[2],sorAsc.yIdx[1]) * 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: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.000145/0.7406, allocations: 140.8 kB / 1.227 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.2e-05/0.7406, allocations: 15.91 kB / 1.227 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001005/0.7417, allocations: 369.9 kB / 1.227 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.7417, allocations: 7.938 kB / 1.227 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.7417, allocations: 4 kB / 1.227 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.7417, allocations: 0 / 1.227 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002989/0.742, allocations: 269.4 kB / 1.228 GB, free: 9.957 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/0.742, allocations: 3.984 kB / 1.228 GB, free: 9.953 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002098/0.7422, allocations: 35.95 kB / 1.228 GB, free: 9.918 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.7422, allocations: 0 / 1.228 GB, free: 9.918 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.7423, allocations: 0 / 1.228 GB, free: 9.918 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.892e-06/0.7423, allocations: 7.938 kB / 1.228 GB, free: 9.91 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.7423, allocations: 4 kB / 1.228 GB, free: 9.906 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009929/0.7433, allocations: 439.2 kB / 1.228 GB, free: 9.461 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.428e-05/0.7433, allocations: 89.02 kB / 1.228 GB, free: 9.355 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.7434, allocations: 0 / 1.228 GB, free: 9.355 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.7436, allocations: 31.89 kB / 1.228 GB, free: 9.324 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.52e-05/0.7437, allocations: 15.92 kB / 1.228 GB, free: 9.309 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.7437, allocations: 4 kB / 1.228 GB, free: 9.305 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 9.025e-05/0.7438, allocations: 122.1 kB / 1.228 GB, free: 9.188 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7438, allocations: 0 / 1.228 GB, free: 9.188 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003089/0.7441, allocations: 39.89 kB / 1.229 GB, free: 9.148 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (sorAsc.yIdx[1],sorAsc.yIdx[2],sorAsc.yIdx[3],sorAsc.yIdx[4],sorAsc.yIdx[5],sorDes.yIdx[1],sorDes.yIdx[2],sorDes.yIdx[3],sorDes.yIdx[4],sorDes.yIdx[5]) * 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: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001386/0.7455, allocations: 0.9894 MB / 1.229 GB, free: 8.133 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001002/0.7465, allocations: 383.1 kB / 1.23 GB, free: 7.746 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.7465, allocations: 0 / 1.23 GB, free: 7.746 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0005128/0.747, allocations: 243.2 kB / 1.23 GB, free: 7.496 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003252/0.7474, allocations: 23.92 kB / 1.23 GB, free: 7.473 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0038/0.7512, allocations: 2.347 MB / 1.232 GB, free: 5.043 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000345/0.7516, allocations: 0.7314 MB / 1.233 GB, free: 4.285 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 7.795e-05/0.7516, allocations: 19.97 kB / 1.233 GB, free: 4.266 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.16e-05/0.7517, allocations: 43.42 kB / 1.233 GB, free: 4.223 MB / 0.9512 GB Notification: Performance of SimCode: time 8.12e-07/0.7517, allocations: 0 / 1.233 GB, free: 4.223 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02546/0.7772, allocations: 3.97 MB / 1.237 GB, free: 424 kB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.061/8.838, allocations: 10.36 kB / 1.237 GB, free: 416 kB / 0.9512 GB (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_SortWithIndices.fmu > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_SortWithIndices.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches