Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sorAsc.u.1.|sorAsc.u.2.|sorAsc.u.3.|sorAsc.u.4.|sorAsc.u.5.|sorAsc.y.1.|sorAsc.y.2.|sorAsc.y.3.|sorAsc.y.4.|sorAsc.y.5.|sorDes.y.1.|sorDes.y.2.|sorDes.y.3.|sorDes.y.4.|sorDes.y.5.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sorAsc.u.1.|sorAsc.u.2.|sorAsc.u.3.|sorAsc.u.4.|sorAsc.u.5.|sorAsc.y.1.|sorAsc.y.2.|sorAsc.y.3.|sorAsc.y.4.|sorAsc.y.5.|sorDes.y.1.|sorDes.y.2.|sorDes.y.3.|sorDes.y.4.|sorDes.y.5.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.712/1.712, allocations: 390.4 MB / 397.7 MB, free: 11.31 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008827/0.0008827, allocations: 188.2 kB / 490.8 MB, free: 1.949 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.07/1.07, allocations: 221.4 MB / 0.7863 GB, free: 13.68 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008399/0.0008399, allocations: 94.53 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.833e-06/6.853e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1653/0.1653, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4484/0.6138, allocations: 149.2 MB / 1.357 GB, free: 17.27 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001671/0.614, allocations: 70.7 kB / 1.357 GB, free: 17.27 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.008418/0.6224, allocations: 3.264 MB / 1.361 GB, free: 17.06 MB / 0.823 GB Notification: Performance of Transformations before backend: time 8.345e-06/0.6225, allocations: 6 kB / 1.361 GB, free: 17.06 MB / 0.823 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.0006243/0.6231, allocations: 492.2 kB / 1.361 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.851e-05/0.6231, allocations: 8.438 kB / 1.361 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.847e-05/0.6232, allocations: 15.81 kB / 1.361 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.6233, allocations: 208.8 kB / 1.361 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.618e-06/0.6233, allocations: 2.375 kB / 1.361 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.851e-05/0.6234, allocations: 8.625 kB / 1.361 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001569/0.6235, allocations: 80.08 kB / 1.361 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001601/0.6237, allocations: 111.4 kB / 1.361 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.6237, allocations: 0.9375 kB / 1.361 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.6237, allocations: 0.5156 kB / 1.361 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.6237, allocations: 2 kB / 1.361 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007667/0.6245, allocations: 0.5043 MB / 1.362 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.58e-05/0.6246, allocations: 82.7 kB / 1.362 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.995e-05/0.6247, allocations: 68.86 kB / 1.362 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.028e-05/0.6247, allocations: 7.703 kB / 1.362 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.179e-05/0.6248, allocations: 32.94 kB / 1.362 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 1.152e-06/0.6248, allocations: 1.531 kB / 1.362 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.0003125/0.6251, allocations: 168.9 kB / 1.362 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.325e-05/0.6251, allocations: 56.31 kB / 1.362 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.2e-05/0.6252, allocations: 122.2 kB / 1.362 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.6252, allocations: 29.64 kB / 1.362 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.89e-05/0.6252, allocations: 101 kB / 1.363 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.124e-05/0.6253, allocations: 43.91 kB / 1.363 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.524e-06/0.6253, allocations: 0.75 kB / 1.363 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.6254, allocations: 325.4 kB / 1.363 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.265e-05/0.6255, allocations: 54.06 kB / 1.363 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.809e-05/0.6256, allocations: 56.38 kB / 1.363 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001059/0.6257, allocations: 70.34 kB / 1.363 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.6257, allocations: 1 kB / 1.363 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002242/0.6259, allocations: 168 kB / 1.363 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.965e-06/0.6259, allocations: 4.344 kB / 1.363 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.626, allocations: 7.172 kB / 1.363 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.937e-06/0.626, allocations: 0 / 1.363 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002412/0.6262, allocations: 58.56 kB / 1.363 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.6262, allocations: 5.297 kB / 1.363 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001919/0.6264, allocations: 59.7 kB / 1.363 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.6265, allocations: 4.25 kB / 1.363 GB, free: 31.31 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.02e-05/0.6265, allocations: 102.2 kB / 1.363 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.336e-05/0.6266, allocations: 13.69 kB / 1.364 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002921/0.6269, allocations: 197 kB / 1.364 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.6269, allocations: 2.5 kB / 1.364 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.6269, allocations: 0 / 1.364 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.6269, allocations: 1.359 kB / 1.364 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001518/0.627, allocations: 224.4 kB / 1.364 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.6271, allocations: 3.984 kB / 1.364 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002199/0.6273, allocations: 65.83 kB / 1.364 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.6273, allocations: 1.281 kB / 1.364 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.6273, allocations: 1.281 kB / 1.364 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.6273, allocations: 3.938 kB / 1.364 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.6273, allocations: 2.312 kB / 1.364 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002569/0.6276, allocations: 261.2 kB / 1.364 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.998e-05/0.6276, allocations: 93.42 kB / 1.364 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.364e-05/0.6276, allocations: 5.5 kB / 1.364 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.6279, allocations: 49.64 kB / 1.364 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.165e-05/0.6279, allocations: 13.67 kB / 1.364 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.6279, allocations: 4.609 kB / 1.364 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6.045e-05/0.628, allocations: 104.5 kB / 1.364 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002382/0.6283, allocations: 41.22 kB / 1.365 GB, free: 30.64 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001566/0.6284, allocations: 133.6 kB / 1.365 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002231/0.6286, allocations: 199.9 kB / 1.365 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.6287, allocations: 1.344 kB / 1.365 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001125/0.6288, allocations: 135.4 kB / 1.365 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001881/0.629, allocations: 15.92 kB / 1.365 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003461/0.6293, allocations: 221 kB / 1.365 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002863/0.6296, allocations: 0.7377 MB / 1.366 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/0.6296, allocations: 3.938 kB / 1.366 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of Templates: time 0.003446/0.6331, allocations: 1.763 MB / 1.368 GB, free: 29.5 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_Sort.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches