Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_SortWithIndices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,fileNamePrefix="Buildings_latest_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.001114/0.001114, 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.001123/0.001123, allocations: 194.3 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.325/1.325, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.692/2.692, allocations: 469.4 MB / 0.742 GB, free: 7.766 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 64.97 kB / 0.9083 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2462, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.001963/0.2482, allocations: 0.8436 MB / 1.065 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001121/0.2493, allocations: 1.012 MB / 1.065 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.342e-05/0.2494, allocations: 0 / 1.065 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.578e-05/0.2495, allocations: 15.86 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.83e-05/0.2495, allocations: 15.81 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003451/0.2499, allocations: 95.75 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001368/0.25, allocations: 127.6 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.2502, allocations: 53.08 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.689e-05/0.2503, allocations: 51.84 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.164e-05/0.2504, allocations: 63.73 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.33e-05/0.2504, allocations: 8 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001143/0.2505, allocations: 63.89 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.093e-05/0.2506, allocations: 43.86 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.363e-05/0.2506, allocations: 63.59 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002323/0.2509, allocations: 203.5 kB / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2509, allocations: 0 / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2509, allocations: 0 / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.314e-06/0.2509, allocations: 0 / 1.066 GB, free: 11.85 MB / 0.8262 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.0007631/0.2517, allocations: 490.8 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.2517, allocations: 16.02 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.101e-05/0.2518, allocations: 42.75 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.254e-05/0.2518, allocations: 16.75 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001684/0.252, allocations: 204 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.252, allocations: 8.375 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/0.252, allocations: 4.375 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005597/0.2526, allocations: 210 kB / 1.067 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.2526, allocations: 3.938 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.2526, allocations: 4 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.2527, allocations: 4 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007739/0.2534, allocations: 223.7 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008696/0.2543, allocations: 0.5276 MB / 1.068 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004505/0.2548, allocations: 166.5 kB / 1.068 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004265/0.2552, allocations: 156.7 kB / 1.068 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.913e-05/0.2553, allocations: 8 kB / 1.068 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.898e-05/0.2553, allocations: 38.5 kB / 1.068 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=25): time 1.512e-06/0.2553, allocations: 4 kB / 1.068 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25): time 0.001402/0.2567, allocations: 482.1 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.855e-05/0.2567, allocations: 55.34 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.2569, allocations: 148.7 kB / 1.069 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.2569, allocations: 25.7 kB / 1.069 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.078e-05/0.2569, allocations: 116.5 kB / 1.069 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.734e-05/0.257, allocations: 67.08 kB / 1.069 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.008e-05/0.2571, allocations: 37.7 kB / 1.069 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.454e-05/0.2572, allocations: 330.8 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004108/0.2576, allocations: 127.9 kB / 1.07 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000397/0.258, allocations: 133.2 kB / 1.07 GB, free: 8.043 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007982/0.2588, allocations: 305.4 kB / 1.07 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2588, allocations: 0 / 1.07 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008642/0.2597, allocations: 329.2 kB / 1.07 GB, free: 7.414 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.2597, allocations: 7.984 kB / 1.07 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/0.2597, allocations: 4 kB / 1.07 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.2598, allocations: 0 / 1.07 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/0.26, allocations: 35.89 kB / 1.07 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.26, allocations: 4 kB / 1.07 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001921/0.2602, allocations: 39.8 kB / 1.07 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.365e-05/0.2602, allocations: 8 kB / 1.07 GB, free: 7.316 MB / 0.8262 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.0001205/0.2604, allocations: 134.4 kB / 1.071 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.799e-05/0.2604, allocations: 11.81 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009524/0.2614, allocations: 366.3 kB / 1.071 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.166e-06/0.2614, allocations: 11.92 kB / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.2614, allocations: 4 kB / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.2614, allocations: 0 / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002491/0.2617, allocations: 269.7 kB / 1.071 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.2617, allocations: 0 / 1.071 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002115/0.2619, allocations: 39.95 kB / 1.071 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.2619, allocations: 0 / 1.071 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.2619, allocations: 0 / 1.071 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.2619, allocations: 3.938 kB / 1.071 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2619, allocations: 0 / 1.071 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009119/0.2628, allocations: 442.9 kB / 1.072 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.572e-05/0.2629, allocations: 100.8 kB / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.187e-05/0.2629, allocations: 0 / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002223/0.2632, allocations: 35.89 kB / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.878e-05/0.2632, allocations: 11.98 kB / 1.072 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.2632, allocations: 4 kB / 1.072 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.899e-05/0.2633, allocations: 109.9 kB / 1.072 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2633, allocations: 11.88 kB / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002951/0.2636, allocations: 43.91 kB / 1.072 GB, free: 5.652 MB / 0.8262 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.001247/0.2649, allocations: 0.9835 MB / 1.073 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009576/0.2658, allocations: 399.1 kB / 1.073 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2659, allocations: 0 / 1.073 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004815/0.2663, allocations: 239.2 kB / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003134/0.2667, allocations: 28.62 kB / 1.074 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003396/0.2701, allocations: 2.329 MB / 1.076 GB, free: 1.555 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00025/0.2703, allocations: 0.7314 MB / 1.077 GB, free: 0.7969 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.073e-05/0.2704, allocations: 15.98 kB / 1.077 GB, free: 0.7812 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.314e-05/0.2705, allocations: 43.42 kB / 1.077 GB, free: 0.7383 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2705, allocations: 0 / 1.077 GB, free: 0.7383 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01923/0.2897, allocations: 3.906 MB / 1.08 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.342/7.632, allocations: 12 kB / 1.08 GB, free: 12.96 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_SortWithIndices.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_SortWithIndices.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches