Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Controls.OBC.CDL.Reals.Validation.Sort,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Sort",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_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.006102/0.006102, allocations: 99.61 kB / 15.73 MB, free: 6.062 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.001295/0.001295, allocations: 194.2 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.798/2.798, allocations: 482.4 MB / 0.7548 GB, free: 6.859 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 76.05 kB / 1.083 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2831, allocations: 162.2 MB / 1.242 GB, free: 9.211 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001922/0.2851, allocations: 0.8449 MB / 1.242 GB, free: 8.371 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001214/0.2863, allocations: 1.003 MB / 1.243 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.832e-05/0.2864, allocations: 4 kB / 1.243 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001038/0.2865, allocations: 19.8 kB / 1.243 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.854e-05/0.2866, allocations: 23.8 kB / 1.243 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003633/0.2869, allocations: 87.81 kB / 1.243 GB, free: 7.223 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001588/0.2871, allocations: 127.6 kB / 1.244 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.2873, allocations: 49.05 kB / 1.244 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.428e-05/0.2874, allocations: 55.83 kB / 1.244 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.856e-05/0.2874, allocations: 63.73 kB / 1.244 GB, free: 6.934 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.347e-05/0.2875, allocations: 12 kB / 1.244 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001552/0.2876, allocations: 95.86 kB / 1.244 GB, free: 6.828 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.955e-05/0.2877, allocations: 39.84 kB / 1.244 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.934e-05/0.2878, allocations: 63.59 kB / 1.244 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002789/0.2881, allocations: 215.3 kB / 1.244 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2881, allocations: 0 / 1.244 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.353e-06/0.2881, allocations: 0 / 1.244 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.2881, allocations: 0 / 1.244 GB, free: 6.516 MB / 0.9669 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.000865/0.289, allocations: 0.4907 MB / 1.245 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.289, allocations: 8.031 kB / 1.245 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.953e-05/0.2891, allocations: 50.67 kB / 1.245 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.8e-05/0.2891, allocations: 16.8 kB / 1.245 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002104/0.2893, allocations: 213.9 kB / 1.245 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.438e-06/0.2893, allocations: 384 / 1.245 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.907e-05/0.2894, allocations: 12.38 kB / 1.245 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005951/0.29, allocations: 210.6 kB / 1.245 GB, free: 5.422 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.29, allocations: 3.938 kB / 1.245 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.29, allocations: 0 / 1.245 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.29, allocations: 0 / 1.245 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008142/0.2908, allocations: 223.8 kB / 1.245 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009547/0.2918, allocations: 0.5275 MB / 1.246 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004733/0.2923, allocations: 170.5 kB / 1.246 GB, free: 4.445 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004386/0.2927, allocations: 160.7 kB / 1.246 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.403e-05/0.2928, allocations: 4 kB / 1.246 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.2928, allocations: 30.56 kB / 1.246 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=25): time 3.216e-06/0.2928, allocations: 0 / 1.246 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of matching and sorting (n=25): time 0.001443/0.2943, allocations: 488.8 kB / 1.247 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.2943, allocations: 55.34 kB / 1.247 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.2945, allocations: 156 kB / 1.247 GB, free: 3.535 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.2945, allocations: 29.7 kB / 1.247 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.704e-05/0.2946, allocations: 108.6 kB / 1.247 GB, free: 3.391 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 6.377e-05/0.2946, allocations: 68.94 kB / 1.247 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.484e-05/0.2947, allocations: 33.7 kB / 1.247 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.2948, allocations: 334.8 kB / 1.247 GB, free: 2.949 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004359/0.2953, allocations: 127.9 kB / 1.248 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004173/0.2957, allocations: 135.9 kB / 1.248 GB, free: 2.691 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008477/0.2966, allocations: 299.8 kB / 1.248 GB, free: 2.398 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2966, allocations: 4 kB / 1.248 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009173/0.2975, allocations: 325.3 kB / 1.248 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.2975, allocations: 12 kB / 1.248 GB, free: 2.059 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/0.2975, allocations: 3.984 kB / 1.248 GB, free: 2.055 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.2976, allocations: 0 / 1.248 GB, free: 2.055 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.2978, allocations: 39.89 kB / 1.248 GB, free: 2.016 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.2978, allocations: 0 / 1.248 GB, free: 2.016 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001909/0.298, allocations: 43.78 kB / 1.248 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.223e-05/0.298, allocations: 8 kB / 1.248 GB, free: 1.965 MB / 0.9669 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.0001388/0.2982, allocations: 138.3 kB / 1.248 GB, free: 1.82 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.02e-05/0.2982, allocations: 11.91 kB / 1.248 GB, free: 1.809 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001006/0.2992, allocations: 366.4 kB / 1.249 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.2993, allocations: 3.938 kB / 1.249 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2993, allocations: 0 / 1.249 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.2993, allocations: 0 / 1.249 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002919/0.2996, allocations: 273.5 kB / 1.249 GB, free: 1.121 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.2996, allocations: 4 kB / 1.249 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000212/0.2998, allocations: 35.95 kB / 1.249 GB, free: 1.082 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.2998, allocations: 0 / 1.249 GB, free: 1.082 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.2998, allocations: 4 kB / 1.249 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.2998, allocations: 3.938 kB / 1.249 GB, free: 1.074 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2998, allocations: 0 / 1.249 GB, free: 1.074 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009704/0.3008, allocations: 440.6 kB / 1.25 GB, free: 0.6289 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.702e-05/0.3009, allocations: 96.94 kB / 1.25 GB, free: 0.5156 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.361e-05/0.3009, allocations: 7.984 kB / 1.25 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/0.3011, allocations: 31.91 kB / 1.25 GB, free: 488 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.159e-05/0.3012, allocations: 15.97 kB / 1.25 GB, free: 472 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.3012, allocations: 4 kB / 1.25 GB, free: 468 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.973e-05/0.3013, allocations: 112.3 kB / 1.25 GB, free: 356 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3013, allocations: 0 / 1.25 GB, free: 356 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002783/0.3016, allocations: 39.94 kB / 1.25 GB, free: 316 kB / 0.9669 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.001397/0.303, allocations: 1.004 MB / 1.251 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009867/0.304, allocations: 383.1 kB / 1.251 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.304, allocations: 0 / 1.251 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0005108/0.3045, allocations: 235.2 kB / 1.251 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003088/0.3049, allocations: 33.89 kB / 1.251 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003728/0.3086, allocations: 2.344 MB / 1.254 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000349/0.309, allocations: 0.7275 MB / 1.254 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.872e-05/0.309, allocations: 11.98 kB / 1.254 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.125e-05/0.3091, allocations: 47.42 kB / 1.255 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of SimCode: time 2.344e-06/0.3091, allocations: 0 / 1.255 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02429/0.3334, allocations: 3.947 MB / 1.258 GB, free: 7.535 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.794/8.128, allocations: 9.766 kB / 1.258 GB, free: 7.527 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Sort.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Sort.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches