Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Reals.Validation.Sort,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Sort",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,fileNamePrefix="Buildings_10_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.001125/0.001125, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001128/0.001128, allocations: 193 kB / 16.25 MB, free: 6.629 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.355/1.355, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.389/2.389, allocations: 437 MB / 0.7101 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 67.91 kB / 0.8689 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6378/0.6391, allocations: 151.6 MB / 1.017 GB, free: 2.73 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002234/0.6414, allocations: 0.8874 MB / 1.018 GB, free: 1.844 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001252/0.6427, allocations: 1.01 MB / 1.019 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.375e-05/0.6428, allocations: 3.938 kB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.6429, allocations: 3.938 kB / 1.019 GB, free: 0.8125 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.375e-05/0.643, allocations: 23.8 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003892/0.6434, allocations: 83.91 kB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001438/0.6435, allocations: 123.6 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/0.6437, allocations: 53.38 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.969e-05/0.6438, allocations: 51.83 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.955e-05/0.6439, allocations: 55.77 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.143e-05/0.6439, allocations: 8 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001157/0.644, allocations: 63.89 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 5.178e-05/0.6441, allocations: 35.89 kB / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.269e-05/0.6441, allocations: 59.61 kB / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002141/0.6444, allocations: 185.7 kB / 1.02 GB, free: 80 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.6444, allocations: 4 kB / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.953e-06/0.6444, allocations: 0 / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.6444, allocations: 4 kB / 1.02 GB, free: 72 kB / 0.7637 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.0007868/0.6452, allocations: 470.8 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.6452, allocations: 8.031 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.643e-05/0.6453, allocations: 50.73 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.185e-05/0.6453, allocations: 16.75 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001853/0.6455, allocations: 211.8 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.6456, allocations: 8.375 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.543e-05/0.6456, allocations: 4.375 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005079/0.6461, allocations: 183.6 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.6461, allocations: 11.88 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.6461, allocations: 7.938 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.151e-05/0.6462, allocations: 15.98 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000653/0.6468, allocations: 199.8 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008356/0.6477, allocations: 460.3 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003919/0.6481, allocations: 138.4 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003446/0.6484, allocations: 128.8 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.6484, allocations: 0 / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/0.6485, allocations: 34.56 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.112e-06/0.6485, allocations: 0 / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.001193/0.6497, allocations: 407.5 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.179e-05/0.6497, allocations: 51.41 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.6498, allocations: 149.5 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.6499, allocations: 29.77 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.916e-05/0.6499, allocations: 108.4 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.745e-05/0.65, allocations: 51.27 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.134e-05/0.65, allocations: 21.7 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001063/0.6502, allocations: 326.8 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003535/0.6505, allocations: 115.9 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003342/0.6509, allocations: 111.8 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006766/0.6515, allocations: 242 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.6516, allocations: 0 / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007393/0.6523, allocations: 281.5 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.6523, allocations: 8 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.6524, allocations: 4 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.6524, allocations: 0 / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002268/0.6526, allocations: 35.95 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.6526, allocations: 12 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000167/0.6528, allocations: 35.8 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.6528, allocations: 0 / 1.023 GB, free: 11.98 MB / 0.7794 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.999e-05/0.6529, allocations: 133.8 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.324e-05/0.653, allocations: 7.906 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.311e-05/0.653, allocations: 12.84 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.987e-05/0.653, allocations: 7.984 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.653, allocations: 3.938 kB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.6531, allocations: 4 kB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002685/0.6533, allocations: 229.4 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.6533, allocations: 0 / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001971/0.6535, allocations: 39.89 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.6536, allocations: 0 / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.6536, allocations: 8 kB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.6536, allocations: 0 / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.6536, allocations: 7.938 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008439/0.6544, allocations: 383.8 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.843e-05/0.6545, allocations: 85.02 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.446e-05/0.6545, allocations: 0 / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002044/0.6547, allocations: 31.95 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.387e-05/0.6548, allocations: 19.92 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.6549, allocations: 4 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.29e-05/0.6549, allocations: 111.9 kB / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6549, allocations: 0 / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003197/0.6553, allocations: 39.84 kB / 1.024 GB, free: 10.79 MB / 0.7794 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.001268/0.6565, allocations: 0.9359 MB / 1.025 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007935/0.6574, allocations: 263.7 kB / 1.026 GB, free: 9.566 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.6574, allocations: 4 kB / 1.026 GB, free: 9.562 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003663/0.6577, allocations: 127.9 kB / 1.026 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000379/0.6581, allocations: 31.14 kB / 1.026 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003175/0.6613, allocations: 2.199 MB / 1.028 GB, free: 7.133 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002638/0.6616, allocations: 0.7215 MB / 1.029 GB, free: 6.387 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.519e-05/0.6617, allocations: 19.98 kB / 1.029 GB, free: 6.367 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.364e-05/0.6618, allocations: 35.42 kB / 1.029 GB, free: 6.332 MB / 0.7794 GB Notification: Performance of SimCode: time 3.2e-07/0.6618, allocations: 0 / 1.029 GB, free: 6.332 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01362/0.6754, allocations: 3.153 MB / 1.032 GB, free: 3.305 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001906/0.6756, allocations: 203.2 kB / 1.032 GB, free: 3.047 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.734/2.41, allocations: 0 / 1.032 GB, free: 3.047 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Sort_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Sort.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Sort.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches