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.0007423/0.0007423, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005121/0.005121, allocations: 168.9 kB / 16.26 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.356/1.356, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.716/2.716, allocations: 462.7 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003383/0.0003383, allocations: 15.22 kB / 0.9029 GB, free: 36.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.3261, allocations: 159.6 MB / 1.059 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.0009818/0.3271, allocations: 0.5585 MB / 1.059 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001235/0.3284, allocations: 1.022 MB / 1.06 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.137e-05/0.3284, allocations: 4 kB / 1.06 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.958e-05/0.3285, allocations: 7.922 kB / 1.06 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.305e-05/0.3286, allocations: 7.875 kB / 1.06 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003116/0.3289, allocations: 75.84 kB / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001419/0.3291, allocations: 111.6 kB / 1.061 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.3292, allocations: 53.38 kB / 1.061 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.296e-05/0.3293, allocations: 39.84 kB / 1.061 GB, free: 3 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.86e-05/0.3294, allocations: 47.75 kB / 1.061 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.805e-05/0.3294, allocations: 4 kB / 1.061 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.3295, allocations: 59.89 kB / 1.061 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.448e-05/0.3296, allocations: 27.91 kB / 1.061 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.243e-05/0.3297, allocations: 73.31 kB / 1.061 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002148/0.3299, allocations: 175.7 kB / 1.061 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3299, allocations: 3.984 kB / 1.061 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3299, allocations: 4 kB / 1.061 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.3299, allocations: 0 / 1.061 GB, free: 2.605 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.000776/0.3307, allocations: 483.1 kB / 1.061 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.3307, allocations: 15.97 kB / 1.061 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.053e-05/0.3308, allocations: 42.73 kB / 1.062 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.38e-05/0.3308, allocations: 12.75 kB / 1.062 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001763/0.331, allocations: 207.8 kB / 1.062 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.07e-05/0.331, allocations: 8.375 kB / 1.062 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.609e-05/0.3311, allocations: 8.375 kB / 1.062 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005591/0.3316, allocations: 210 kB / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.3316, allocations: 3.938 kB / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.3317, allocations: 11.92 kB / 1.062 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.116e-05/0.3317, allocations: 19.92 kB / 1.062 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007822/0.3325, allocations: 263.7 kB / 1.062 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009064/0.3334, allocations: 480.3 kB / 1.063 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004659/0.3339, allocations: 170.5 kB / 1.063 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004187/0.3343, allocations: 156.8 kB / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.51e-05/0.3343, allocations: 4 kB / 1.063 GB, free: 396 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.943e-05/0.3344, allocations: 30.56 kB / 1.063 GB, free: 356 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.3344, allocations: 4 kB / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.001393/0.3358, allocations: 477.4 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.696e-05/0.3358, allocations: 51.41 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.336, allocations: 150.5 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.336, allocations: 33.7 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.798e-05/0.3361, allocations: 104.4 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.074e-05/0.3361, allocations: 51.2 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.889e-05/0.3362, allocations: 17.7 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001133/0.3363, allocations: 326.8 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004043/0.3367, allocations: 135.9 kB / 1.064 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003874/0.3371, allocations: 143.9 kB / 1.064 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007599/0.3379, allocations: 298.9 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.3379, allocations: 0 / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008575/0.3387, allocations: 341.2 kB / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.3388, allocations: 4 kB / 1.065 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.3388, allocations: 0 / 1.065 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.3388, allocations: 0 / 1.065 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002379/0.339, allocations: 51.95 kB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.339, allocations: 7.922 kB / 1.065 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001861/0.3392, allocations: 39.97 kB / 1.065 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.3393, allocations: 7.984 kB / 1.065 GB, free: 14.09 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: 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 8.931e-05/0.3394, allocations: 123.4 kB / 1.065 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.915e-05/0.3394, allocations: 15.81 kB / 1.065 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.981e-05/0.3394, allocations: 16.83 kB / 1.065 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.075e-05/0.3395, allocations: 8 kB / 1.065 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3395, allocations: 3.938 kB / 1.065 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.3395, allocations: 3.984 kB / 1.065 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002411/0.3397, allocations: 221.5 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.3397, allocations: 0 / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002197/0.34, allocations: 71.8 kB / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.34, allocations: 0 / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.34, allocations: 0 / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.34, allocations: 0 / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.34, allocations: 7.938 kB / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009027/0.3409, allocations: 441.9 kB / 1.066 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.609e-05/0.341, allocations: 88.95 kB / 1.066 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.141e-05/0.341, allocations: 0 / 1.066 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002187/0.3412, allocations: 43.95 kB / 1.066 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.798e-05/0.3413, allocations: 15.92 kB / 1.066 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.3413, allocations: 4 kB / 1.066 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.575e-05/0.3414, allocations: 111.2 kB / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3414, allocations: 0 / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002733/0.3417, allocations: 47.91 kB / 1.066 GB, free: 12.8 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: 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.001257/0.3429, allocations: 0.9777 MB / 1.067 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008719/0.3438, allocations: 311.8 kB / 1.068 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3438, allocations: 3.938 kB / 1.068 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004314/0.3443, allocations: 159.9 kB / 1.068 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003507/0.3446, allocations: 25.34 kB / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003562/0.3482, allocations: 2.332 MB / 1.07 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002603/0.3485, allocations: 0.7239 MB / 1.071 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.776e-05/0.3486, allocations: 15.97 kB / 1.071 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.263e-05/0.3486, allocations: 39.36 kB / 1.071 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of SimCode: time 5.21e-07/0.3486, allocations: 0 / 1.071 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02399/0.3726, allocations: 3.003 MB / 1.074 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002705/0.373, allocations: 203.8 kB / 1.074 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.789/2.162, allocations: 0 / 1.074 GB, free: 4.977 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