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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.00132/0.00132, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001602/0.001602, allocations: 198.4 kB / 16.14 MB, free: 6.648 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.286/1.286, allocations: 222.9 MB / 239.8 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.545/2.545, allocations: 461.8 MB / 0.7342 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 72.06 kB / 0.8985 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2773, allocations: 157.4 MB / 1.052 GB, free: 8.176 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001915/0.2793, allocations: 0.8956 MB / 1.053 GB, free: 7.277 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001072/0.2804, allocations: 1.026 MB / 1.054 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.396e-05/0.2804, allocations: 0 / 1.054 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.585e-05/0.2805, allocations: 7.875 kB / 1.054 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.275e-05/0.2806, allocations: 15.86 kB / 1.054 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002654/0.2808, allocations: 67.92 kB / 1.054 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001211/0.281, allocations: 123.6 kB / 1.054 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/0.2811, allocations: 49.38 kB / 1.054 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.312e-05/0.2812, allocations: 39.84 kB / 1.054 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.294e-05/0.2813, allocations: 63.69 kB / 1.054 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.03e-05/0.2813, allocations: 8 kB / 1.054 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.923e-05/0.2814, allocations: 55.95 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.685e-05/0.2815, allocations: 31.91 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.44e-05/0.2815, allocations: 59.59 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001971/0.2817, allocations: 183.6 kB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.2817, allocations: 4 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.31e-07/0.2817, allocations: 0 / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.737e-06/0.2817, allocations: 0 / 1.055 GB, free: 5.539 MB / 0.8106 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.000726/0.2825, allocations: 475 kB / 1.055 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.2825, allocations: 11.97 kB / 1.055 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.218e-05/0.2826, allocations: 42.73 kB / 1.055 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.498e-05/0.2826, allocations: 16.75 kB / 1.055 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001562/0.2828, allocations: 216.6 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.486e-06/0.2828, allocations: 384 / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.805e-05/0.2828, allocations: 8.375 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005046/0.2833, allocations: 187.6 kB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.2833, allocations: 7.875 kB / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.2833, allocations: 4 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.122e-05/0.2834, allocations: 12 kB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006767/0.2841, allocations: 207.7 kB / 1.056 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008234/0.2849, allocations: 460.3 kB / 1.056 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003904/0.2853, allocations: 142.5 kB / 1.056 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003559/0.2857, allocations: 124.8 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.2857, allocations: 3.938 kB / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.974e-05/0.2857, allocations: 30.56 kB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 2.595e-06/0.2857, allocations: 3.984 kB / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.001154/0.2869, allocations: 393.4 kB / 1.057 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.927e-05/0.2869, allocations: 51.41 kB / 1.057 GB, free: 3 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.287, allocations: 156.8 kB / 1.057 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.2871, allocations: 29.77 kB / 1.057 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.179e-05/0.2871, allocations: 104.4 kB / 1.057 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.539e-05/0.2872, allocations: 51.2 kB / 1.057 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.867e-05/0.2872, allocations: 21.7 kB / 1.057 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.724e-05/0.2873, allocations: 330.8 kB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003554/0.2877, allocations: 107.9 kB / 1.058 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003381/0.288, allocations: 123.8 kB / 1.058 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006698/0.2887, allocations: 247 kB / 1.058 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2887, allocations: 0 / 1.058 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007461/0.2895, allocations: 273.3 kB / 1.058 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.2895, allocations: 8 kB / 1.058 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.2895, allocations: 0 / 1.058 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.2895, allocations: 0 / 1.058 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002247/0.2897, allocations: 31.95 kB / 1.058 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.2897, allocations: 12.16 kB / 1.058 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/0.2899, allocations: 39.81 kB / 1.059 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.523e-05/0.29, allocations: 7.984 kB / 1.059 GB, free: 1.449 MB / 0.8106 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 9.133e-05/0.29, allocations: 123.8 kB / 1.059 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.569e-05/0.2901, allocations: 11.81 kB / 1.059 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.585e-05/0.2901, allocations: 20.83 kB / 1.059 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.831e-05/0.2902, allocations: 4 kB / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.2902, allocations: 7.938 kB / 1.059 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.2902, allocations: 3.984 kB / 1.059 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002379/0.2904, allocations: 225.5 kB / 1.059 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2904, allocations: 4 kB / 1.059 GB, free: 1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001991/0.2906, allocations: 31.95 kB / 1.059 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.2906, allocations: 7.984 kB / 1.059 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.2907, allocations: 0 / 1.059 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.2907, allocations: 0 / 1.059 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.2907, allocations: 3.938 kB / 1.059 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007896/0.2915, allocations: 386 kB / 1.059 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.976e-05/0.2915, allocations: 88.95 kB / 1.059 GB, free: 472 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.163e-05/0.2915, allocations: 3.938 kB / 1.059 GB, free: 468 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001965/0.2917, allocations: 35.95 kB / 1.059 GB, free: 432 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.986e-05/0.2918, allocations: 15.92 kB / 1.059 GB, free: 416 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.2918, allocations: 0 / 1.059 GB, free: 416 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.256e-05/0.2919, allocations: 113.9 kB / 1.06 GB, free: 304 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2919, allocations: 0 / 1.06 GB, free: 304 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002633/0.2922, allocations: 43.91 kB / 1.06 GB, free: 260 kB / 0.8106 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.001141/0.2933, allocations: 0.9308 MB / 1.061 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007395/0.2941, allocations: 255.8 kB / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2941, allocations: 0 / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003525/0.2944, allocations: 131.9 kB / 1.061 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003383/0.2948, allocations: 23.94 kB / 1.061 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003151/0.2979, allocations: 2.198 MB / 1.063 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002371/0.2982, allocations: 0.716 MB / 1.064 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.121e-05/0.2983, allocations: 19.97 kB / 1.064 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.066e-05/0.2984, allocations: 39.42 kB / 1.064 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2984, allocations: 0 / 1.064 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01283/0.3112, allocations: 3.085 MB / 1.067 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002122/0.3114, allocations: 207.4 kB / 1.067 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.713/2.024, allocations: 0 / 1.067 GB, free: 8.586 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Sort_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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